Class RequestUrlFilteringMiddleware
Middleware to filter requests based on the host header.
Inherited Members
Namespace: Coree.NETASP.Middleware.RequestUrlFiltering
Assembly: Coree.NETASP.dll
Syntax
public class RequestUrlFilteringMiddleware
Constructors
| Edit this page View SourceRequestUrlFilteringMiddleware(RequestDelegate, IOptions<RequestUrlFilteringOptions>, ILogger<RequestUrlFilteringMiddleware>, IPointService)
Declaration
public RequestUrlFilteringMiddleware(RequestDelegate nextMiddleware, IOptions<RequestUrlFilteringOptions> options, ILogger<RequestUrlFilteringMiddleware> logger, IPointService pointService)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | nextMiddleware | |
IOptions<RequestUrlFilteringOptions> | options | |
ILogger<RequestUrlFilteringMiddleware> | logger | |
IPointService | pointService |
Methods
| Edit this page View SourceGetFullRequestUri(HttpContext)
Builds the complete URI from the request components.
Declaration
public Uri? GetFullRequestUri(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The HTTP context containing the request. |
Returns
Type | Description |
---|---|
Uri | The full URI of the request or null if URI is invalid. |
InvokeAsync(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. |