This commit is contained in:
2025-03-31 19:08:35 +02:00
parent 4dd31dfe18
commit 91e033a2ec
12 changed files with 247 additions and 77 deletions

View File

@ -95,7 +95,7 @@ app.UseSwaggerUI(options =>
app.UseHttpsRedirection();
//app.UseMiddleware<RequestTimeMiddleware>();
app.UseMiddleware<RequestTimeMiddleware>();
using (var scope = app.Services.CreateScope())
{
@ -140,7 +140,7 @@ using (var scope = app.Services.CreateScope())
TrangaSettings.Load();
Tranga.StartLogger();
Tranga.JobStarterThread.Start(app.Services);
Tranga.NotificationSenderThread.Start(app.Services.CreateScope().ServiceProvider.GetService<PgsqlContext>());
Tranga.NotificationSenderThread.Start(app.Services);
app.UseCors("AllowAll");