rework authentication and some other crap for optimizing sql parallelism

This commit is contained in:
Stanley Dimant
2022-07-10 17:20:30 +02:00
parent 9c63ce9c99
commit b9ac535836
14 changed files with 331 additions and 107 deletions

View File

@@ -41,10 +41,12 @@ namespace MareSynchronosServer
services.AddSingleton<SystemInfoService, SystemInfoService>();
services.AddSingleton<IUserIdProvider, IdBasedUserIdProvider>();
services.AddDbContext<MareDbContext>(options =>
services.AddDbContextPool<MareDbContext>(options =>
{
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"));
});
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"), builder =>
{
});
}, 32000);
services.AddHostedService<FileCleanupService>();
services.AddHostedService(provider => provider.GetService<SystemInfoService>());