Class Middleware<T1, T2, T3>
Provides a base-class for middleware implementation in ASP.NET Core with three dependency injected parameters.
Inherited Members
Namespace: Cuemon.AspNetCore
Assembly: Cuemon.AspNetCore.dll
Syntax
public abstract class Middleware<T1, T2, T3> : MiddlewareCore
Type Parameters
Name | Description |
---|---|
T1 | The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
T2 | The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
T3 | The type of the third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
Constructors
| Improve this DocMiddleware(RequestDelegate)
Initializes a new instance of the Middleware class.
Declaration
protected Middleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | The delegate of the request pipeline to invoke. |
Methods
| Improve this DocInvokeAsync(HttpContext, T1, T2, T3)
Executes the Middleware<T1, T2, T3>.
Declaration
public abstract Task InvokeAsync(HttpContext context, T1 di1, T2 di2, T3 di3)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | context | The context of the current request. |
T1 | di1 | The first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
T2 | di2 | The second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
T3 | di3 | The third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the execution of this middleware. |