Class UserAgentSentinelFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that provides an User-Agent sentinel on action methods.
public class UserAgentSentinelFilter : ConfigurableAsyncActionFilter<UserAgentSentinelOptions>, IConfigurable<UserAgentSentinelOptions>, IAsyncActionFilter, IFilterMetadata
- Inheritance
-
UserAgentSentinelFilter
- Implements
-
IAsyncActionFilterIFilterMetadata
- Inherited Members
Constructors
UserAgentSentinelFilter(IOptions<UserAgentSentinelOptions>)
Initializes a new instance of the UserAgentSentinelFilter class.
public UserAgentSentinelFilter(IOptions<UserAgentSentinelOptions> setup)
Parameters
setup
IOptions<UserAgentSentinelOptions>The UserAgentSentinelOptions which need to be configured.
Methods
OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
context
ActionExecutingContextThe Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.
next
ActionExecutionDelegateThe Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.
Returns
See Also
ConfigurableAsyncActionFilter<TOptions>
IAsyncActionFilter