Class Middleware
Provides a base-class for middleware implementation in ASP.NET Core.
Inherited Members
Namespace: Cuemon.AspNetCore
Assembly: Cuemon.AspNetCore.dll
Syntax
public abstract class Middleware : MiddlewareCore
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)
Executes the Middleware.
Declaration
public abstract Task InvokeAsync(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | context | The context of the current request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the execution of this middleware. |