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
Configurable<TOptions>
ConfigurableAsyncActionFilter<TOptions>
Implements
IConfigurable<TOptions>
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 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 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 ActionExecutingContext.

next ActionExecutionDelegate

The ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.

Returns

Task

A Task that on completion indicates the filter has executed.

See Also