Table of Contents

Class ConfigurableActionFilter<TOptions>

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

A base class implementation of a filter that surrounds execution of the action.

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

Type Parameters

TOptions

The type of the configured options.

Inheritance
Object
Configurable<TOptions>
ConfigurableActionFilter<TOptions>
Implements
IConfigurable<TOptions>
IActionFilter
IFilterMetadata
Derived
Inherited Members

Constructors

ConfigurableActionFilter(IOptions<TOptions>)

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

protected ConfigurableActionFilter(IOptions<TOptions> setup)

Parameters

setup IOptions<TOptions>

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

ConfigurableActionFilter(Action<TOptions>)

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

protected ConfigurableActionFilter(Action<TOptions> setup)

Parameters

setup Action<TOptions>

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

Methods

OnActionExecuted(ActionExecutedContext)

Called after the action executes, before the action result.

public abstract void OnActionExecuted(ActionExecutedContext context)

Parameters

context ActionExecutedContext

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext.

OnActionExecuting(ActionExecutingContext)

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

public abstract void OnActionExecuting(ActionExecutingContext context)

Parameters

context ActionExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.

See Also

Configurable<TOptions>
IActionFilter