ConfigurableMiddleware<T1, T2, 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 two dependency injected parameters.
public abstract class ConfigurableMiddleware<T1, T2, 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).
T2The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2).
TOptionsThe type of the options to setup.
- Inheritance
-
ConfigurableMiddlewareCore<TOptions>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>