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