Class HttpLastModifiedHeaderOptions
- Namespace
- Cuemon.AspNetCore.Mvc.Filters.Cacheable
- Assembly
- Cuemon.AspNetCore.Mvc.dll
Specifies options that is related to the HttpLastModifiedHeaderFilter.
public class HttpLastModifiedHeaderOptions : IParameterObject
- Inheritance
-
HttpLastModifiedHeaderOptions
- Implements
Constructors
HttpLastModifiedHeaderOptions()
Initializes a new instance of the HttpLastModifiedHeaderOptions class.
public HttpLastModifiedHeaderOptions()
Remarks
The following table shows the initial property values for an instance of <xref href="Cuemon.AspNetCore.Mvc.Filters.Cacheable.HttpEntityTagHeaderOptions" data-throw-if-not-resolved="false"></xref>.
<table><thead><tr><th class="term">Property</th><th class="description">Initial Value</th></tr></thead><tbody><tr><td class="term"><xref href="Cuemon.AspNetCore.Mvc.Filters.Cacheable.HttpLastModifiedHeaderOptions.LastModifiedProvider" data-throw-if-not-resolved="false"></xref></td><td class="description"><pre><code class="lang-csharp">(timestamp, context) =>
{ Decorator.Enclose(context.Response).TryAddOrUpdateLastModifiedHeader(context.Request, timestamp.Modified ?? timestamp.Created); };
Properties
HasLastModifiedProvider
Gets a value indicating whether this instance has an LastModifiedProvider.
public bool HasLastModifiedProvider { get; }
Property Value
- bool
trueif this instance has an LastModifiedProvider; otherwise,false.
LastModifiedProvider
Gets or sets the delegate that is invoked when a result of a ResultExecutingContext is an ObjectResult and the value is an IEntityDataTimestamp implementation.
public Action<IEntityDataTimestamp, HttpContext> LastModifiedProvider { get; set; }
Property Value
- Action<IEntityDataTimestamp, HttpContext>
The delegate that provides an HTTP Last-Modified header.