Table of Contents

Class UserAgentSentinelFilter

Namespace
Cuemon.AspNetCore.Mvc.Filters.Headers
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
Object
UserAgentSentinelFilter
Implements
IAsyncActionFilter
IFilterMetadata
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 ActionExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.

next ActionExecutionDelegate

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.

Returns

Task

A System.Threading.Tasks.Task that on completion indicates the filter has executed.

See Also

ConfigurableAsyncActionFilter<TOptions>
IAsyncActionFilter