ConfigurableMiddleware<T1, T2, T3, T4, T5, TOptions> Class
Definition
- Namespace
- Cuemon.AspNetCore
- Assemblies
- Cuemon.AspNetCore.dll
Provides an base-class for configurable middleware implementation in ASP.NET Core that supports the options pattern with five dependency injected parameters.
public abstract class ConfigurableMiddleware<T1, T2, T3, T4, T5, TOptions> : ConfigurableMiddlewareCore<TOptions>, IConfigurable<TOptions> where TOptions : class, IParameterObject, new()
Type Parameters
T1The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
T2The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
T3The type of the third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
T4The type of the fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
T5The type of the fifth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
TOptionsThe type of the options to setup.
- Inheritance
-
ConfigurableMiddlewareCore<TOptions>ConfigurableMiddleware<T1, T2, T3, T4, T5, 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, T3, T4, T5) | Executes the ConfigurableMiddleware<T1, T2, T3, T4, T5, TOptions>. |