Class Middleware<T1, T2, T3, T4, T5>
- Namespace
- Cuemon.AspNetCore
- Assembly
- Cuemon.AspNetCore.dll
Provides a base-class for middleware implementation in ASP.NET Core with five dependency injected parameters.
public abstract class Middleware<T1, T2, T3, T4, T5> : MiddlewareCore
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).
- Inheritance
-
Middleware<T1, T2, T3, T4, T5>
- Inherited Members
Constructors
Middleware(RequestDelegate)
Initializes a new instance of the Middleware class.
protected Middleware(RequestDelegate next)
Parameters
nextRequestDelegateThe delegate of the request pipeline to invoke.
Methods
InvokeAsync(HttpContext, T1, T2, T3, T4, T5)
Executes the Middleware<T1, T2, T3, T4, T5>.
public abstract Task InvokeAsync(HttpContext context, T1 di1, T2 di2, T3 di3, T4 di4, T5 di5)
Parameters
contextHttpContextThe context of the current request.
di1T1The first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
di2T2The second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
di3T3The third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
di4T4The fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
di5T5The fifth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).
Returns
- Task
A task that represents the execution of this middleware.