Table of Contents

Class UserAgentSentinelMiddleware

Namespace
Cuemon.AspNetCore.Http.Headers
Assembly
Cuemon.AspNetCore.dll

Provides a HTTP User-Agent sentinel middleware implementation for ASP.NET Core.

public class UserAgentSentinelMiddleware : ConfigurableMiddleware<UserAgentSentinelOptions>, IConfigurable<UserAgentSentinelOptions>
Inheritance
Object
UserAgentSentinelMiddleware
Implements
Inherited Members

Constructors

UserAgentSentinelMiddleware(RequestDelegate, IOptions<UserAgentSentinelOptions>)

Initializes a new instance of the UserAgentSentinelMiddleware class.

public UserAgentSentinelMiddleware(RequestDelegate next, IOptions<UserAgentSentinelOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<UserAgentSentinelOptions>

The UserAgentSentinelOptions which need to be configured.

UserAgentSentinelMiddleware(RequestDelegate, Action<UserAgentSentinelOptions>)

Initializes a new instance of the UserAgentSentinelMiddleware class.

public UserAgentSentinelMiddleware(RequestDelegate next, Action<UserAgentSentinelOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<UserAgentSentinelOptions>

The UserAgentSentinelOptions which need to be configured.

Methods

InvokeAsync(HttpContext)

public override async Task InvokeAsync(HttpContext context)

Parameters

context HttpContext

The context of the current request.

Returns

Task

A task that represents the execution of this middleware.