Class ConfigurableAsyncActionFilter<TOptions>
- Namespace
- Cuemon.AspNetCore.Mvc.Filters
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A base class implementation of a filter that asynchronously surrounds execution of the action, after model binding is complete.
public abstract class ConfigurableAsyncActionFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncActionFilter, IFilterMetadata where TOptions : class, IParameterObject, new()
Type Parameters
TOptions
The type of the configured options.
- Inheritance
-
Configurable<TOptions>ConfigurableAsyncActionFilter<TOptions>
- Implements
-
IConfigurable<TOptions>IAsyncActionFilterIFilterMetadata
- Derived
- Inherited Members
Constructors
ConfigurableAsyncActionFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableAsyncActionFilter(IOptions<TOptions> setup)
Parameters
setup
IOptions<TOptions>The IOptions<TOptions> which need to be configured.
ConfigurableAsyncActionFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableAsyncActionFilter(Action<TOptions> setup)
Parameters
Methods
OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
public abstract 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
Configurable<TOptions>
IAsyncActionFilter