diff --git a/Server/Program.cs b/Server/Program.cs index 058b495..0974b20 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -1,6 +1,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using ReInject; +using Server; var services = Injector.GetContainer(); @@ -20,7 +21,8 @@ ILoggerFactory loggerFactory = LoggerFactory.Create(builder => opts => opts.FormatLogFileName = fileName => String.Format(fileName, DateTime.UtcNow)); }); +services.Register(DependencyStrategy.AtomicInstance, true, new AesProvider(loggerFactory, null, null)); services.Register(DependencyStrategy.AtomicInstance, true, loggerFactory); -var authServer = services.GetInstance(); +var authServer = services.GetInstance(); authServer.Start(); \ No newline at end of file