Show / Hide Table of Contents

    Class HttpLastModifiedHeaderOptions

    Specifies options that is related to the HttpLastModifiedHeader.

    Inheritance
    System.Object
    HttpLastModifiedHeaderOptions
    Namespace: Cuemon.AspNetCore.Mvc.Filters.Cacheable
    Assembly: Cuemon.AspNetCore.Mvc.dll
    Syntax
    public class HttpLastModifiedHeaderOptions

    Constructors

    | Improve this Doc

    HttpLastModifiedHeaderOptions()

    Initializes a new instance of the HttpLastModifiedHeaderOptions class.

    Declaration
    public HttpLastModifiedHeaderOptions()
    Remarks

    The following table shows the initial property values for an instance of HttpEntityTagHeaderOptions.

    PropertyInitial Value
    LastModifiedProvider
               (timestamp, context) =>
               {
                   context.Response.SetLastModifiedHeaderInformation(context.Request, timestamp.Modified ?? timestamp.Created);
               };

    Properties

    | Improve this Doc

    HasLastModifiedProvider

    Gets a value indicating whether this instance has an LastModifiedProvider.

    Declaration
    public bool HasLastModifiedProvider { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has an LastModifiedProvider; otherwise, false.

    | Improve this Doc

    LastModifiedProvider

    Gets or sets the delegate that is invoked when a result of a Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext is an Microsoft.AspNetCore.Mvc.ObjectResult and the value is an ICacheableTimestamp implementation.

    Declaration
    public Action<ICacheableTimestamp, HttpContext> LastModifiedProvider { get; set; }
    Property Value
    Type Description
    System.Action<ICacheableTimestamp, Microsoft.AspNetCore.Http.HttpContext>

    The delegate that provides an HTTP Last-Modified header.

    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

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