WithEntityTagHeader Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
WithEntityTagHeader<T>(T, Action<ContentBasedObjectResultOptions<T>>)
Encapsulates the specified instance within an integrity based object that is processed by an HTTP ETag filter implementation.
public static ICacheableObjectResult WithEntityTagHeader<T>(this T instance, Action<ContentBasedObjectResultOptions<T>> setup)
Parameters
instanceTThe instance to make cacheable.
setupAction<ContentBasedObjectResultOptions<T>>The ContentBasedObjectResultOptions<T> that needs to be configured.
Returns
- ICacheableObjectResult
An ICacheableObjectResult implementation.
Type Parameters
TThe type of the object to make cacheable.
- See Also
-
CacheableObjectResult<T>