Class HttpCacheableFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that will invoke filters implementing the ICacheableObjectResult interface.
public class HttpCacheableFilter : ConfigurableAsyncResultFilter<HttpCacheableOptions>, IConfigurable<HttpCacheableOptions>, IAsyncResultFilter, IFilterMetadata
- Inheritance
-
HttpCacheableFilter
- Implements
-
IAsyncResultFilterIFilterMetadata
- Inherited Members
Constructors
HttpCacheableFilter(IOptions<HttpCacheableOptions>)
Initializes a new instance of the HttpCacheableFilter class.
public HttpCacheableFilter(IOptions<HttpCacheableOptions> setup)
Parameters
setup
IOptions<HttpCacheableOptions>The HttpCacheableOptions which need to be configured.
Methods
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
public override 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
See Also
ConfigurableAsyncResultFilter<TOptions>