Class HttpLastModifiedHeaderFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that applies a HTTP Last-Modified header.
public class HttpLastModifiedHeaderFilter : IConfigurable<HttpLastModifiedHeaderOptions>, ICacheableAsyncResultFilter, IAsyncResultFilter, IFilterMetadata
- Inheritance
-
HttpLastModifiedHeaderFilter
- Implements
-
IAsyncResultFilterIFilterMetadata
Constructors
HttpLastModifiedHeaderFilter(Action<HttpLastModifiedHeaderOptions>)
Initializes a new instance of the HttpLastModifiedHeaderFilter class.
public HttpLastModifiedHeaderFilter(Action<HttpLastModifiedHeaderOptions> setup = null)
Parameters
setup
Action<HttpLastModifiedHeaderOptions>The HttpLastModifiedHeaderOptions which may be configured.
Properties
Options
Gets the configured options of this instance.
public HttpLastModifiedHeaderOptions Options { get; }
Property Value
- HttpLastModifiedHeaderOptions
The configured options of this instance.
Methods
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
public Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
Parameters
context
ResultExecutingContextThe Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext.
next
ResultExecutionDelegateThe Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.
Returns
See Also
IAsyncResultFilter