Class Middleware<T1, T2, T3, T4>
- Namespace
- Cuemon.AspNetCore
- Assembly
- Cuemon.AspNetCore.dll
Provides a base-class for middleware implementation in ASP.NET Core with four dependency injected parameters.
public abstract class Middleware<T1, T2, T3, T4> : MiddlewareCore
Type Parameters
T1
The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
T2
The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
T3
The type of the third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
T4
The type of the fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
- Inheritance
-
Middleware<T1, T2, T3, T4>
- Derived
- Inherited Members
Constructors
Middleware(RequestDelegate)
Initializes a new instance of the Middleware class.
protected Middleware(RequestDelegate next)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
Methods
InvokeAsync(HttpContext, T1, T2, T3, T4)
Executes the Middleware<T1, T2, T3, T4>.
public abstract Task InvokeAsync(HttpContext context, T1 di1, T2 di2, T3 di3, T4 di4)
Parameters
context
HttpContextThe context of the current request.
di1
T1The first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
di2
T2The second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
di3
T3The third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
di4
T4The fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4).
Returns
- Task
A task that represents the execution of this middleware.