Table of Contents

Class ConfigurableFactoryFilter<TOptions>

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

A base class implementation of a filter metadata which can create an instance of an executable filter.

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

Type Parameters

TOptions

The type of the configured options.

Inheritance
Configurable<TOptions>
ConfigurableFactoryFilter<TOptions>
Implements
IConfigurable<TOptions>
Inherited Members

Constructors

ConfigurableFactoryFilter(IOptions<TOptions>)

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

protected ConfigurableFactoryFilter(IOptions<TOptions> setup)

Parameters

setup IOptions<TOptions>

The IOptions<TOptions> which need to be configured.

ConfigurableFactoryFilter(Action<TOptions>)

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

protected ConfigurableFactoryFilter(Action<TOptions> setup)

Parameters

setup Action<TOptions>

The Action<T> which need to be configured.

Properties

IsReusable

Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests.

public virtual bool IsReusable { get; }

Property Value

bool

true if this instance is reusable; otherwise, false.

Methods

CreateInstance(IServiceProvider)

Creates an instance of the executable filter.

public abstract IFilterMetadata CreateInstance(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The request IServiceProvider.

Returns

IFilterMetadata

An instance of the executable filter.

See Also