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