Table of Contents

ConfigurableMiddleware<T1, T2, TOptions> Class

Definition

Namespace
Cuemon.AspNetCore
Assemblies
Cuemon.AspNetCore.dll
Source
src/Cuemon.AspNetCore/ConfigurableMiddleware.cs

Provides an base-class for configurable middleware implementation in ASP.NET Core that supports the options pattern with two dependency injected parameters.

public abstract class ConfigurableMiddleware<T1, T2, TOptions> : ConfigurableMiddlewareCore<TOptions>, IConfigurable<TOptions> where TOptions : class, IParameterObject, new()

Type Parameters

T1

The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2).

T2

The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2).

TOptions

The type of the options to setup.

Inheritance
ConfigurableMiddleware<T1, T2, TOptions>
Implements
IConfigurable<TOptions>
Inherited Members

Constructors

Name Description
ConfigurableMiddleware(RequestDelegate, IOptions<TOptions>)

Initializes a new instance of the ConfigurableMiddleware<TOptions> class.

ConfigurableMiddleware(RequestDelegate, Action<TOptions>)

Initializes a new instance of the ConfigurableMiddleware<TOptions> class.

Methods

Name Description
InvokeAsync(HttpContext, T1, T2)

Executes the ConfigurableMiddleware<T1, T2, TOptions>.

See Also

Middleware<T1, T2>