Class HttpEntityTagHeaderOptions
Specifies options that is related to the HttpEntityTagHeader.
Inheritance
Namespace: Cuemon.AspNetCore.Mvc.Filters.Cacheable
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class HttpEntityTagHeaderOptions
Constructors
| Improve this DocHttpEntityTagHeaderOptions()
Initializes a new instance of the HttpEntityTagHeaderOptions class.
Declaration
public HttpEntityTagHeaderOptions()
Remarks
The following table shows the initial property values for an instance of HttpEntityTagHeaderOptions.
Property | Initial Value |
---|---|
EntityTagProvider |
|
EntityTagResponseParser |
|
UseEntityTagResponseParser | false |
Properties
| Improve this DocEntityTagProvider
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 ICacheableIntegrity implementation.
Declaration
public Action<ICacheableIntegrity, HttpContext> EntityTagProvider { get; set; }
Property Value
Type | Description |
---|---|
System.Action<ICacheableIntegrity, Microsoft.AspNetCore.Http.HttpContext> | The delegate that provides an HTTP ETag header. |
EntityTagResponseParser
Gets or sets the delegate that is invoked as a fallback from the EntityTagProvider when UseEntityTagResponseParser is set to true
.
Declaration
public Action<Stream, HttpRequest, HttpResponse> EntityTagResponseParser { get; set; }
Property Value
Type | Description |
---|---|
System.Action<System.IO.Stream, Microsoft.AspNetCore.Http.HttpRequest, Microsoft.AspNetCore.Http.HttpResponse> | The delegate that computes a HTTP ETag from the Microsoft.AspNetCore.Http.HttpResponse.Body. |
HasEntityTagProvider
Gets a value indicating whether this instance has an EntityTagProvider.
Declaration
public bool HasEntityTagProvider { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasEntityTagResponseParser
Gets a value indicating whether this instance has an EntityTagResponseParser.
Declaration
public bool HasEntityTagResponseParser { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
UseEntityTagResponseParser
Gets or sets a value indicating whether to use computation of the HTTP ETag header reading and copying the Microsoft.AspNetCore.Http.HttpResponse.Body.
Declaration
public bool UseEntityTagResponseParser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|