AddFilter Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters.Cacheable
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
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.