Class UserAgentFilteringMiddleware
Middleware to filter requests based on the host header.
Inherited Members
Namespace: Coree.NETASP.Middleware.UserAgentFiltering
Assembly: Coree.NETASP.dll
Syntax
public class UserAgentFilteringMiddleware
Constructors
| Edit this page View SourceUserAgentFilteringMiddleware(RequestDelegate, IOptions<UserAgentFilterOptions>, ILogger<UserAgentFilteringMiddleware>, IPointService)
Declaration
public UserAgentFilteringMiddleware(RequestDelegate nextMiddleware, IOptions<UserAgentFilterOptions> options, ILogger<UserAgentFilteringMiddleware> logger, IPointService pointService)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestDelegate | nextMiddleware | |
| IOptions<UserAgentFilterOptions> | options | |
| ILogger<UserAgentFilteringMiddleware> | logger | |
| 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. |