Table of Contents

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
Object
Configurable<TOptions>
ConfigurableAsyncActionFilter<TOptions>
Implements
IConfigurable<TOptions>
IAsyncActionFilter
IFilterMetadata
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 Microsoft.Extensions.Options.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

setup Action<TOptions>

The System.Action<T> which need to be configured.

Methods

OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

Called asynchronously before the action, after model binding is complete.

public abstract Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)

Parameters

context ActionExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.

next ActionExecutionDelegate

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.

Returns

Task

A System.Threading.Tasks.Task that on completion indicates the filter has executed.

See Also

Configurable<TOptions>
IAsyncActionFilter