Show / Hide Table of Contents

    Class ConfigurableFactoryFilter<TOptions>

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

    Inheritance
    System.Object
    Configurable<TOptions>
    ConfigurableFactoryFilter<TOptions>
    Implements
    IConfigurable<TOptions>
    Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
    Inherited Members
    Configurable<TOptions>.Options
    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 Doc

    ConfigurableFactoryFilter(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.

    | Improve this Doc

    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 Doc

    IsReusable

    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

    true if this instance is reusable; otherwise, false.

    Methods

    | Improve this Doc

    CreateInstance(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.

    Implements

    IConfigurable<TOptions>
    Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)

    See Also

    Configurable<TOptions>
    Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX