Class ConfigurableActionFilter<TOptions>
- Namespace
- Cuemon.AspNetCore.Mvc.Filters
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A base class implementation of a filter that surrounds execution of the action.
public abstract class ConfigurableActionFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IActionFilter, IFilterMetadata where TOptions : class, IParameterObject, new()
Type Parameters
TOptions
The type of the configured options.
- Inheritance
-
Configurable<TOptions>ConfigurableActionFilter<TOptions>
- Implements
-
IConfigurable<TOptions>
- Derived
- Inherited Members
Constructors
ConfigurableActionFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableActionFilter(IOptions<TOptions> setup)
Parameters
setup
IOptions<TOptions>The IOptions<TOptions> which need to be configured.
ConfigurableActionFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableActionFilter(Action<TOptions> setup)
Parameters
Methods
OnActionExecuted(ActionExecutedContext)
Called after the action executes, before the action result.
public abstract void OnActionExecuted(ActionExecutedContext context)
Parameters
context
ActionExecutedContext
OnActionExecuting(ActionExecutingContext)
Called before the action executes, after model binding is complete.
public abstract void OnActionExecuting(ActionExecutingContext context)
Parameters
context
ActionExecutingContext
See Also
Configurable<TOptions>