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
Configurable<TOptions>
ConfigurableAsyncResultFilter<TOptions>
Implements
IConfigurable<TOptions>
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 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 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 ResultExecutingContext.

next ResultExecutionDelegate

The ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.

Returns

Task

A Task that on completion indicates the filter has executed.

See Also