Table of Contents

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

T1

The type of the first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

T2

The type of the second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

T3

The type of the third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

T4

The type of the fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

T5

The 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

next RequestDelegate

The delegate of the request pipeline to invoke.

Methods

InvokeAsync(HttpContext, T1, T2, T3, T4, T5)

public abstract Task InvokeAsync(HttpContext context, T1 di1, T2 di2, T3 di3, T4 di4, T5 di5)

Parameters

context HttpContext

The context of the current request.

di1 T1

The first dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

di2 T2

The second dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

di3 T3

The third dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

di4 T4

The fourth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

di5 T5

The fifth dependency injected parameter of InvokeAsync(HttpContext, T1, T2, T3, T4, T5).

Returns

Task

A task that represents the execution of this middleware.

See Also

ConfigurableMiddleware<T1, T2, T3, T4, T5, TOptions>