Class HttpEntityTagHeaderFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that computes the response body and applies an appropriate HTTP Etag header.
public class HttpEntityTagHeaderFilter : IConfigurable<HttpEntityTagHeaderOptions>, ICacheableAsyncResultFilter, IAsyncResultFilter, IFilterMetadata
- Inheritance
-
ObjectHttpEntityTagHeaderFilter
- Implements
-
IAsyncResultFilterIFilterMetadata
Constructors
HttpEntityTagHeaderFilter(Action<HttpEntityTagHeaderOptions>)
Initializes a new instance of the HttpEntityTagHeaderFilter class.
public HttpEntityTagHeaderFilter(Action<HttpEntityTagHeaderOptions> setup = null)
Parameters
setup
Action<HttpEntityTagHeaderOptions>The HttpEntityTagHeaderOptions which may be configured.
Properties
Options
Gets the configured options of this instance.
public HttpEntityTagHeaderOptions Options { get; }
Property Value
- HttpEntityTagHeaderOptions
The configured options of this instance.
Methods
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
public async 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
- Task
A System.Threading.Tasks.Task that on completion indicates the filter has executed.