Class CacheableAsyncResultFilterExtensions
- Namespace
 - Cuemon.Extensions.AspNetCore.Mvc.Filters.Cacheable
 
- 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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setupAction<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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP head filters.
Type Parameters
TThe 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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setupAction<TOptions>The Action<T> which may be configured.
Type Parameters
TThe type of the ICacheableAsyncResultFilter.
TOptionsThe 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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
setupAction<HttpLastModifiedHeaderOptions>The HttpLastModifiedHeaderOptions which need to be configured.
InsertFilter<T>(IList<ICacheableAsyncResultFilter>, int)
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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
indexintThe zero-based index at which a HTTP related filter should be inserted.
Type Parameters
TThe type of the ICacheableAsyncResultFilter.
InsertFilter<T, TOptions>(IList<ICacheableAsyncResultFilter>, int, 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
filtersIList<ICacheableAsyncResultFilter>The list of cache related HTTP filters.
indexintThe zero-based index at which a HTTP related filter should be inserted.
setupAction<TOptions>The Action<T> which may be configured.
Type Parameters
TThe type of the ICacheableAsyncResultFilter.
TOptionsThe type of delegate setup to configure
T.