Table of Contents

Class ConfigurableAsyncResultFilter<TOptions>

Namespace
Cuemon.AspNetCore.Mvc.Filters
Assembly
Cuemon.AspNetCore.Mvc.dll

A base class implementation of a filter that asynchronously surrounds execution of action results successfully returned from an action.

public abstract class ConfigurableAsyncResultFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncResultFilter, IFilterMetadata where TOptions : class, IParameterObject, new()

Type Parameters

TOptions

The type of the configured options.

Inheritance
Object
Configurable<TOptions>
ConfigurableAsyncResultFilter<TOptions>
Implements
IConfigurable<TOptions>
IAsyncResultFilter
IFilterMetadata
Derived
Inherited Members

Constructors

ConfigurableAsyncResultFilter(IOptions<TOptions>)

Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.

protected ConfigurableAsyncResultFilter(IOptions<TOptions> setup)

Parameters

setup IOptions<TOptions>

The Microsoft.Extensions.Options.IOptions<TOptions> which need to be configured.

ConfigurableAsyncResultFilter(Action<TOptions>)

Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.

protected ConfigurableAsyncResultFilter(Action<TOptions> setup)

Parameters

setup Action<TOptions>

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

Methods

OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)

Called asynchronously before the action result.

public abstract Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)

Parameters

context ResultExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext.

next ResultExecutionDelegate

The Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.

Returns

Task

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

See Also

Configurable<TOptions>
IAsyncResultFilter