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>IFilterFactoryIFilterMetadata
- 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
Properties
IsReusable
Gets a value that indicates if the result of Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider) can be reused across requests.
public virtual bool IsReusable { get; }
Property Value
- Boolean
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
IServiceProviderThe request IServiceProvider.
Returns
- IFilterMetadata
An instance of the executable filter.
See Also
Configurable<TOptions>
IFilterFactory