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 : ConfigurableMiddleware<ILogger<ServerTimingMiddleware>, IHostEnvironment, ServerTimingOptions>, IConfigurable<ServerTimingOptions>
Inheritance
Object
ServerTimingMiddleware
Implements
Inherited Members

Constructors

ServerTimingMiddleware(RequestDelegate, IOptions<ServerTimingOptions>)

Initializes a new instance of the ServerTimingMiddleware class.

public ServerTimingMiddleware(RequestDelegate next, IOptions<ServerTimingOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<ServerTimingOptions>

The ServerTimingOptions which need to be configured.

ServerTimingMiddleware(RequestDelegate, Action<ServerTimingOptions>)

Initializes a new instance of the ServerTimingMiddleware class.

public ServerTimingMiddleware(RequestDelegate next, Action<ServerTimingOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<ServerTimingOptions>

The ServerTimingOptions which need to be configured.

Methods

InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment)

Executes the ServerTimingMiddleware.

public override Task InvokeAsync(HttpContext context, ILogger<ServerTimingMiddleware> di1, IHostEnvironment di2)

Parameters

context HttpContext

The context of the current request.

di1 ILogger<ServerTimingMiddleware>

The Microsoft.Extensions.Logging.ILogger used in combination with .

di2 IHostEnvironment

The dependency injected Microsoft.Extensions.Hosting.IHostEnvironment of InvokeAsync(HttpContext, ILogger<ServerTimingMiddleware>, IHostEnvironment).

Returns

Task

A task that represents the execution of this middleware.