PluralKit/PluralKit.API/Modules.cs

13 lines
367 B
C#
Raw Normal View History

2020-01-26 00:27:45 +00:00
using Autofac;
namespace PluralKit.API
{
public class APIModule: Module
{
protected override void Load(ContainerBuilder builder)
{
2020-02-01 21:17:13 +00:00
// Lifetime scope so the service, RequiresSystem, and handler itself all get the same value
builder.RegisterType<TokenAuthService>().AsSelf().InstancePerLifetimeScope();
2020-01-26 00:27:45 +00:00
}
}
}