Class ConfigurableFactoryFilter<TOptions>
A base class implementation of a filter metadata which can create an instance of an executable filter.
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public abstract class ConfigurableFactoryFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IFilterFactory, IFilterMetadata where TOptions : class, new()
Type Parameters
Name | Description |
---|---|
TOptions | The type of the configured options. |
Constructors
| Improve this DocConfigurableFactoryFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableFactoryFilter<TOptions> class.
Declaration
protected ConfigurableFactoryFilter(IOptions<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<TOptions> | setup | The Microsoft.Extensions.Options.IOptions<TOptions> which need to be configured. |
ConfigurableFactoryFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableFactoryFilter<TOptions> class.
Declaration
protected ConfigurableFactoryFilter(Action<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TOptions> | setup | The System.Action<T> which need to be configured. |
Properties
| Improve this DocIsReusable
Gets a value that indicates if the result of Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider) can be reused across requests.
Declaration
public virtual bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this DocCreateInstance(IServiceProvider)
Creates an instance of the executable filter.
Declaration
public abstract IFilterMetadata CreateInstance(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | The request System.IServiceProvider. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata | An instance of the executable filter. |