Table of Contents

Class HttpCacheableFilter

Namespace
Cuemon.AspNetCore.Mvc.Filters.Cacheable
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
Object
HttpCacheableFilter
Implements
IAsyncResultFilter
IFilterMetadata
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 ResultExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext.

next ResultExecutionDelegate

The 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.

See Also