Class ProtocolFilteringMiddleware
Middleware to filter requests based on the HTTP protocol used.
Inherited Members
Namespace: Coree.NETASP.Middleware.ProtocolFiltering
Assembly: Coree.NETASP.dll
Syntax
public class ProtocolFilteringMiddleware
Constructors
| Edit this page View SourceProtocolFilteringMiddleware(RequestDelegate, ILogger<ProtocolFilteringMiddleware>, IOptions<ProtocolFilteringOptions>, IPointService)
Declaration
public ProtocolFilteringMiddleware(RequestDelegate nextMiddleware, ILogger<ProtocolFilteringMiddleware> logger, IOptions<ProtocolFilteringOptions> options, IPointService pointService)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | nextMiddleware | |
ILogger<ProtocolFilteringMiddleware> | logger | |
IOptions<ProtocolFilteringOptions> | options | |
IPointService | pointService |
Methods
| Edit this page View SourceInvokeAsync(HttpContext)
Invoke method to process the HTTP context based on allowed protocols.
Declaration
public Task InvokeAsync(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The HTTP context. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |