Class UserAgentSentinelFilter
A filter that provides an HTTP User-Agent sentinel of action methods.
Inheritance
System.Object
UserAgentSentinelFilter
Implements
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters.Headers
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class UserAgentSentinelFilter : ConfigurableAsyncActionFilter<UserAgentSentinelOptions>, IConfigurable<UserAgentSentinelOptions>, IAsyncActionFilter, IFilterMetadata
Constructors
| Improve this DocUserAgentSentinelFilter(IOptions<UserAgentSentinelOptions>)
Initializes a new instance of the UserAgentSentinelFilter class.
Declaration
public UserAgentSentinelFilter(IOptions<UserAgentSentinelOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<UserAgentSentinelOptions> | setup | The UserAgentSentinelOptions which need to be configured. |
Methods
| Improve this DocOnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
Declaration
public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext | context | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext. |
Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate | next | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate. Invoked to execute the next action filter or the action itself. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that on completion indicates the filter has executed. |
Overrides
Cuemon.AspNetCore.Mvc.Filters.ConfigurableAsyncActionFilter<Cuemon.AspNetCore.Http.Headers.UserAgentSentinelOptions>.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate)
Implements
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Extension Methods
See Also
ConfigurableAsyncActionFilter<TOptions>
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter