mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
13 lines
No EOL
367 B
C#
13 lines
No EOL
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();
|
|
}
|
|
}
|
|
} |