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
TOptionsThe 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
setupIOptions<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
contextActionExecutedContext
OnActionExecuting(ActionExecutingContext)
Called before the action executes, after model binding is complete.
public abstract void OnActionExecuting(ActionExecutingContext context)
Parameters
contextActionExecutingContext
See Also
Configurable<TOptions>