adjust contextaccessor

This commit is contained in:
Stanley Dimant
2022-08-03 22:18:29 +02:00
parent 6da875713f
commit aebb7fdbb0
2 changed files with 6 additions and 4 deletions

View File

@@ -35,6 +35,8 @@ namespace MareSynchronosServer
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddHttpContextAccessor();
services.AddSignalR(hubOptions =>
{
hubOptions.MaximumReceiveMessageSize = long.MaxValue;
@@ -65,7 +67,6 @@ namespace MareSynchronosServer
services.AddHostedService<FileCleanupService>();
services.AddHostedService(provider => provider.GetService<SystemInfoService>());
services.AddHostedService<DiscordBot>();
services.AddHttpContextAccessor();
services.AddDatabaseDeveloperPageExceptionFilter();
services.AddAuthentication(options =>