Table of Contents

Class ApiKeySentinelMiddleware

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

Provides an API key sentinel middleware implementation for ASP.NET Core.

public class ApiKeySentinelMiddleware : ConfigurableMiddleware<ApiKeySentinelOptions>, IConfigurable<ApiKeySentinelOptions>
Inheritance
Object
ApiKeySentinelMiddleware
Implements
Inherited Members

Constructors

ApiKeySentinelMiddleware(RequestDelegate, IOptions<ApiKeySentinelOptions>)

Initializes a new instance of the ApiKeySentinelMiddleware class.

public ApiKeySentinelMiddleware(RequestDelegate next, IOptions<ApiKeySentinelOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup IOptions<ApiKeySentinelOptions>

The UserAgentSentinelOptions which need to be configured.

ApiKeySentinelMiddleware(RequestDelegate, Action<ApiKeySentinelOptions>)

Initializes a new instance of the ApiKeySentinelMiddleware class.

public ApiKeySentinelMiddleware(RequestDelegate next, Action<ApiKeySentinelOptions> setup)

Parameters

next RequestDelegate

The delegate of the request pipeline to invoke.

setup Action<ApiKeySentinelOptions>

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.