Class DnsHostNameFilteringMiddleware
Middleware to filter requests based on the HTTP protocol used.
Inherited Members
Namespace: Coree.NETASP.Middleware.DnsHostNameFiltering
Assembly: Coree.NETASP.dll
Syntax
public class DnsHostNameFilteringMiddleware
Constructors
| Edit this page View SourceDnsHostNameFilteringMiddleware(RequestDelegate, ILogger<DnsHostNameFilteringMiddleware>, IOptions<DnsHostNameFilteringOptions>, IPointService)
Declaration
public DnsHostNameFilteringMiddleware(RequestDelegate nextMiddleware, ILogger<DnsHostNameFilteringMiddleware> logger, IOptions<DnsHostNameFilteringOptions> options, IPointService pointService)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | nextMiddleware | |
ILogger<DnsHostNameFilteringMiddleware> | logger | |
IOptions<DnsHostNameFilteringOptions> | 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. |