Table of Contents

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
ServerTimingMiddleware
Inherited Members

Constructors

ServerTimingMiddleware(RequestDelegate)

Initializes a new instance of the ServerTimingMiddleware class.

public ServerTimingMiddleware(RequestDelegate next)

Parameters

next RequestDelegate

The 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 HttpContext

The context of the current request.

di1 ILogger<ServerTimingMiddleware>

The ILogger used in combination with LogLevelSelector.

di2 IHostEnvironment

The dependency injected IHostEnvironment of InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment, IServerTiming, IOptions<ServerTimingOptions>).

di3 IServerTiming

The 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.