mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-28 23:29:18 +01:00
add SystemInfoService, increase API to 3
This commit is contained in:
parent
64f6380294
commit
f307c9c486
7 changed files with 184 additions and 20 deletions
|
|
@ -38,6 +38,7 @@ namespace MareSynchronosServer
|
|||
hubOptions.StreamBufferCapacity = 200;
|
||||
});
|
||||
|
||||
services.AddSingleton<SystemInfoService, SystemInfoService>();
|
||||
services.AddSingleton<IUserIdProvider, IdBasedUserIdProvider>();
|
||||
|
||||
services.AddDbContext<MareDbContext>(options =>
|
||||
|
|
@ -46,6 +47,7 @@ namespace MareSynchronosServer
|
|||
});
|
||||
|
||||
services.AddHostedService<FileCleanupService>();
|
||||
services.AddHostedService(provider => provider.GetService<SystemInfoService>());
|
||||
|
||||
services.AddDatabaseDeveloperPageExceptionFilter();
|
||||
services.AddAuthentication(options =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue