Class CustomEndpointMiddleware
Middleware providing with custom HTTP/WebSocket endpoints
Inherited Members
Namespace: DuetWebServer.Middleware
Assembly: DuetWebServer.dll
Syntax
public class CustomEndpointMiddleware
Constructors
CustomEndpointMiddleware(RequestDelegate, IConfiguration, ILogger<CustomEndpointMiddleware>, IHostApplicationLifetime, IModelProvider, ISessionStorage)
Constructor of this middleware
Declaration
public CustomEndpointMiddleware(RequestDelegate next, IConfiguration configuration, ILogger<CustomEndpointMiddleware> logger, IHostApplicationLifetime applicationLifetime, IModelProvider modelProvider, ISessionStorage sessionStorage)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next | Next request delegate |
IConfiguration | configuration | Application configuration |
ILogger<CustomEndpointMiddleware> | logger | Logger instance |
IHostApplicationLifetime | applicationLifetime | Host application lifetime |
IModelProvider | modelProvider | Object model provider |
ISessionStorage | sessionStorage | Session storage |
Methods
InvokeAsync(HttpContext)
Called when a new HTTP request is received
Declaration
public Task InvokeAsync(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP context |
Returns
Type | Description |
---|---|
Task | Asynchronous task |