Table of Contents

AddFilter Method

Definition

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.