Add Middleware to add Startofrequest time to all requests

This commit is contained in:
2025-03-19 00:16:00 +01:00
parent 892ef6c9d6
commit 90ce1395b8
2 changed files with 37 additions and 0 deletions

View File

@ -95,6 +95,8 @@ app.UseSwaggerUI(options =>
app.UseHttpsRedirection();
//app.UseMiddleware<RequestTimeMiddleware>();
using (var scope = app.Services.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<PgsqlContext>();