Class UserAgentSentinelMiddleware
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assembly
- Cuemon.AspNetCore.dll
Provides a HTTP User-Agent sentinel middleware implementation for ASP.NET Core.
public class UserAgentSentinelMiddleware : ConfigurableMiddleware<UserAgentSentinelOptions>, IConfigurable<UserAgentSentinelOptions>
- Inheritance
-
UserAgentSentinelMiddleware
- Implements
- Inherited Members
Constructors
UserAgentSentinelMiddleware(RequestDelegate, IOptions<UserAgentSentinelOptions>)
Initializes a new instance of the UserAgentSentinelMiddleware class.
public UserAgentSentinelMiddleware(RequestDelegate next, IOptions<UserAgentSentinelOptions> setup)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
IOptions<UserAgentSentinelOptions>The UserAgentSentinelOptions which need to be configured.
UserAgentSentinelMiddleware(RequestDelegate, Action<UserAgentSentinelOptions>)
Initializes a new instance of the UserAgentSentinelMiddleware class.
public UserAgentSentinelMiddleware(RequestDelegate next, Action<UserAgentSentinelOptions> setup)
Parameters
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
Action<UserAgentSentinelOptions>The UserAgentSentinelOptions which need to be configured.
Methods
InvokeAsync(HttpContext)
Executes the UserAgentSentinelMiddleware.
public override async Task InvokeAsync(HttpContext context)
Parameters
context
HttpContextThe context of the current request.
Returns
- Task
A task that represents the execution of this middleware.