Class ServerTimingMiddleware
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assembly
- Cuemon.AspNetCore.dll
Provides a Server-Timing middleware implementation for ASP.NET Core.
public class ServerTimingMiddleware : Middleware<ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>>
- Inheritance
-
Middleware<ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>>ServerTimingMiddleware
- Inherited Members
Constructors
ServerTimingMiddleware(RequestDelegate)
Initializes a new instance of the ServerTimingMiddleware class.
public ServerTimingMiddleware(RequestDelegate next)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
Methods
InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>)
Executes the ServerTimingMiddleware.
public override Task InvokeAsync(HttpContext context, ILogger<ServerTimingMiddleware> di1, IHostEnvironment di2, IServerTiming di3, IOptions<ServerTimingOptions> di4)
Parameters
context
HttpContextThe context of the current request.
di1
ILogger<ServerTimingMiddleware>The ILogger used in combination with LogLevelSelector.
di2
IHostEnvironmentThe dependency injected IHostEnvironment of InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>).
di3
IServerTimingThe dependency injected IServerTiming of InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>).
di4
IOptions<ServerTimingOptions>The dependency injected IOptions<TOptions> of InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>).
Returns
- Task
A task that represents the execution of this middleware.