diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:36:02 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:36:02 +0100 |
commit | 2e8aa30daa4a33fa33622bccb344dfc24483e320 (patch) | |
tree | ee08ce4e83382b81a1fbabaac85c763971408bbe /MxApiExtensions/Program.cs | |
parent | Fix some null checks (diff) | |
download | MxApiExtensions-2e8aa30daa4a33fa33622bccb344dfc24483e320.tar.xz |
Fix sync
Diffstat (limited to 'MxApiExtensions/Program.cs')
-rw-r--r-- | MxApiExtensions/Program.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MxApiExtensions/Program.cs b/MxApiExtensions/Program.cs index 72a5dc9..21d8ba4 100644 --- a/MxApiExtensions/Program.cs +++ b/MxApiExtensions/Program.cs @@ -3,7 +3,9 @@ using LibMatrix; using LibMatrix.Services; using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Http.Timeouts; +using Microsoft.Extensions.Logging.Console; using MxApiExtensions; +using MxApiExtensions.Classes; using MxApiExtensions.Classes.LibMatrix; using MxApiExtensions.Services; @@ -22,6 +24,7 @@ builder.Services.AddSingleton<MxApiExtensionsConfiguration>(); builder.Services.AddScoped<AuthenticationService>(); builder.Services.AddScoped<AuthenticatedHomeserverProviderService>(); +builder.Services.AddScoped<UserContextService>(); builder.Services.AddSingleton<TieredStorageService>(x => { var config = x.GetRequiredService<MxApiExtensionsConfiguration>(); @@ -54,6 +57,7 @@ builder.Services.AddCors(options => { "Open", policy => policy.AllowAnyOrigin().AllowAnyHeader()); }); +// builder.Logging.AddConsole(x => x.FormatterName = "custom").AddConsoleFormatter<CustomLogFormatter, SimpleConsoleFormatterOptions>(); var app = builder.Build(); |