ConfigurableMiddleware<T, 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 a dependency injected parameter.
public abstract class ConfigurableMiddleware<T, TOptions> : ConfigurableMiddlewareCore<TOptions>, IConfigurable<TOptions> where TOptions : class, IParameterObject, new()
Type Parameters
TThe type of the dependency injected parameter of InvokeAsync(HttpContext, T).
TOptionsThe type of the options to setup.
- Inheritance
-
objectConfigurableMiddlewareCore<TOptions>ConfigurableMiddleware<T, TOptions>
- Implements
-
IConfigurable<TOptions>
- Derived
- 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, T) | Executes the ConfigurableMiddleware<T, TOptions>. |
See Also
Middleware<T>