Add AuthLifetimeService
Refactor AuthManager
This commit is contained in:
@@ -32,11 +32,17 @@ namespace Akari.Prototype.Server
|
||||
.Bind(Configuration.GetSection(TcpProviderOptions.SectionPath))
|
||||
.ValidateDataAnnotations();
|
||||
|
||||
services.AddOptions<AkariOptions>()
|
||||
.Bind(Configuration.GetSection(AkariOptions.SectionPath))
|
||||
.ValidateDataAnnotations();
|
||||
|
||||
services.AddSingleton<IFingerprintManager, FingerprintManager>();
|
||||
services.AddSingleton<IAuthManager, AuthManager>();
|
||||
services.AddSingleton<IKeyManager, KeyManager>();
|
||||
services.AddSingleton<AkariPath>();
|
||||
|
||||
services.AddHostedService<TcpProviderService>();
|
||||
services.AddHostedService<AuthLifetimeService>();
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
|
||||
Reference in New Issue
Block a user