Class CacheableAsyncResultFilterExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.Mvc.dll
Extension methods for the ICacheableAsyncResultFilter interface.
public static class CacheableAsyncResultFilterExtensions
- Inheritance
-
CacheableAsyncResultFilterExtensions
Methods
AddEntityTagHeader(IList<ICacheableAsyncResultFilter>, Action<HttpEntityTagHeaderOptions>)
Adds an HttpEntityTagHeaderFilter filter to the list.
public static void AddEntityTagHeader(this IList<ICacheableAsyncResultFilter> filters, Action<HttpEntityTagHeaderOptions> setup = null)
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setup
Action<HttpEntityTagHeaderOptions>The HttpEntityTagHeaderOptions which need to be configured.
AddFilter<T>(IList<ICacheableAsyncResultFilter>)
Adds a cache related HTTP filter to the list.
public static void AddFilter<T>(this IList<ICacheableAsyncResultFilter> filters)
where T : ICacheableAsyncResultFilter
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP head filters.
Type Parameters
T
The type of the ICacheableAsyncResultFilter.
AddFilter<T, TOptions>(IList<ICacheableAsyncResultFilter>, Action<TOptions>)
Adds a cache related HTTP filter to the list.
public static void AddFilter<T, TOptions>(this IList<ICacheableAsyncResultFilter> filters, Action<TOptions> setup = null)
where T : ICacheableAsyncResultFilter where TOptions : class, IParameterObject, new()
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setup
Action<TOptions>The Action<T> which may be configured.
Type Parameters
T
The type of the ICacheableAsyncResultFilter.
TOptions
The type of delegate setup to configure
T
.
AddLastModifiedHeader(IList<ICacheableAsyncResultFilter>, Action<HttpLastModifiedHeaderOptions>)
Adds an HttpLastModifiedHeaderFilter filter to the list.
public static void AddLastModifiedHeader(this IList<ICacheableAsyncResultFilter> filters, Action<HttpLastModifiedHeaderOptions> setup = null)
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setup
Action<HttpLastModifiedHeaderOptions>The HttpLastModifiedHeaderOptions which need to be configured.
InsertFilter<T>(IList<ICacheableAsyncResultFilter>, Int32)
Inserts a cache related HTTP filter to the list at the specified index
.
public static void InsertFilter<T>(this IList<ICacheableAsyncResultFilter> filters, int index)
where T : ICacheableAsyncResultFilter
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
index
Int32The zero-based index at which a HTTP related filter should be inserted.
Type Parameters
T
The type of the ICacheableAsyncResultFilter.
InsertFilter<T, TOptions>(IList<ICacheableAsyncResultFilter>, Int32, Action<TOptions>)
Inserts a cache related HTTP filter to the list at the specified index
.
public static void InsertFilter<T, TOptions>(this IList<ICacheableAsyncResultFilter> filters, int index, Action<TOptions> setup = null)
where T : ICacheableAsyncResultFilter where TOptions : class, IParameterObject, new()
Parameters
filters
IList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
index
Int32The zero-based index at which a HTTP related filter should be inserted.
setup
Action<TOptions>The Action<T> which may be configured.
Type Parameters
T
The type of the ICacheableAsyncResultFilter.
TOptions
The type of delegate setup to configure
T
.