Show / Hide Table of Contents

    Class HttpCacheableFilter

    A filter that will invoke filters implementing the ICacheableObjectResult interface.

    Inheritance
    System.Object
    Configurable<HttpCacheableOptions>
    ConfigurableAsyncResultFilter<HttpCacheableOptions>
    HttpCacheableFilter
    Implements
    IConfigurable<HttpCacheableOptions>
    Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter
    Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
    Inherited Members
    Configurable<HttpCacheableOptions>.Options
    Namespace: Cuemon.AspNetCore.Mvc.Filters.Cacheable
    Assembly: Cuemon.AspNetCore.Mvc.dll
    Syntax
    public class HttpCacheableFilter : ConfigurableAsyncResultFilter<HttpCacheableOptions>, IConfigurable<HttpCacheableOptions>, IAsyncResultFilter, IFilterMetadata

    Constructors

    | Improve this Doc

    HttpCacheableFilter(IOptions<HttpCacheableOptions>)

    Initializes a new instance of the HttpCacheableFilter class.

    Declaration
    public HttpCacheableFilter(IOptions<HttpCacheableOptions> setup)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<HttpCacheableOptions> setup

    The HttpCacheableOptions which need to be configured.

    Methods

    | Improve this Doc

    OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)

    Called asynchronously before the action result.

    Declaration
    public override Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context

    The Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext.

    Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate next

    The Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task that on completion indicates the filter has executed.

    Overrides
    Cuemon.AspNetCore.Mvc.Filters.ConfigurableAsyncResultFilter<Cuemon.AspNetCore.Mvc.Filters.Cacheable.HttpCacheableOptions>.OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate)

    Implements

    IConfigurable<TOptions>
    Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter
    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

    ConfigurableAsyncResultFilter<TOptions>
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX