Class HostNameFilteringMiddleware
Middleware to filter requests based on the host header.
Inherited Members
Namespace: Coree.NETASP.Middleware.HostNameFiltering
Assembly: Coree.NETASP.dll
Syntax
public class HostNameFilteringMiddleware
Constructors
| Edit this page View SourceHostNameFilteringMiddleware(RequestDelegate, ILogger<HostNameFilteringMiddleware>, IOptions<HostNameFilterOptions>, IPointService)
Declaration
public HostNameFilteringMiddleware(RequestDelegate nextMiddleware, ILogger<HostNameFilteringMiddleware> logger, IOptions<HostNameFilterOptions> options, IPointService pointService)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | nextMiddleware | |
ILogger<HostNameFilteringMiddleware> | logger | |
IOptions<HostNameFilterOptions> | options | |
IPointService | pointService |
Methods
| Edit this page View SourceInvokeAsync(HttpContext)
Invoke method to process the HTTP context.
Declaration
public Task InvokeAsync(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The HTTP context. |
Returns
Type | Description |
---|---|
Task | A task that represents the completion of request processing. |