Table of Contents

InsertFilter Method

Definition

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

filters IList<ICacheableAsyncResultFilter>

The list of cache related HTTP filters.

index int

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

filters IList<ICacheableAsyncResultFilter>

The list of cache related HTTP filters.

index int

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