PluralKit/PluralKit.API/Modules.cs
2020-02-01 22:17:13 +01:00

13 lines
367 B
C#

using Autofac;
namespace PluralKit.API
{
public class APIModule: Module
{
protected override void Load(ContainerBuilder builder)
{
// Lifetime scope so the service, RequiresSystem, and handler itself all get the same value
builder.RegisterType<TokenAuthService>().AsSelf().InstancePerLifetimeScope();
}
}
}