Class ConfigurableAsyncActionFilter<TOptions>
A base class implementation of a filter that asynchronously surrounds execution of the action, after model binding is complete.
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public abstract class ConfigurableAsyncActionFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncActionFilter, IFilterMetadata where TOptions : class, new()
Type Parameters
Name | Description |
---|---|
TOptions | The type of the configured options. |
Constructors
| Improve this DocConfigurableAsyncActionFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
Declaration
protected ConfigurableAsyncActionFilter(IOptions<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<TOptions> | setup | The Microsoft.Extensions.Options.IOptions<TOptions> which need to be configured. |
ConfigurableAsyncActionFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
Declaration
protected ConfigurableAsyncActionFilter(Action<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TOptions> | setup | The System.Action<T> which need to be configured. |
Methods
| Improve this DocOnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
Declaration
public abstract Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext | context | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext. |
Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate | next | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate. Invoked to execute the next action filter or the action itself. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that on completion indicates the filter has executed. |