From ee2fa602fe0bf2246b22e300511c57a4da0da0df Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 2 Jan 2023 12:26:21 +0100 Subject: [PATCH] instantiate AesProvider in service collection --- Server/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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