Class CacheableAsyncResultFilterListExtensions
Extension methods for the System.Collections.Generic.IList<T> interface.
Inheritance
Namespace: Cuemon.AspNetCore.Mvc.Filters.Cacheable
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public static class CacheableAsyncResultFilterListExtensions
Methods
| Improve this DocAddEntityTagHeader(IList<ICacheableAsyncResultFilter>, Action<HttpEntityTagHeaderOptions>)
Adds an HttpEntityTagHeader filter to the list.
Declaration
public static void AddEntityTagHeader(this IList<ICacheableAsyncResultFilter> filters, Action<HttpEntityTagHeaderOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ICacheableAsyncResultFilter> | filters | The list of cache related HTTP filters. |
System.Action<HttpEntityTagHeaderOptions> | setup | The HttpEntityTagHeaderOptions which need to be configured. |
AddFilter<T, TOptions>(IList<ICacheableAsyncResultFilter>, Action<TOptions>)
Adds a HTTP related filter to the list.
Declaration
public static void AddFilter<T, TOptions>(this IList<ICacheableAsyncResultFilter> filters, Action<TOptions> setup)
where T : ICacheableAsyncResultFilter where TOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ICacheableAsyncResultFilter> | filters | The list of cache related HTTP head filters. |
System.Action<TOptions> | setup | The System.Action<T> which need to be configured. |
Type Parameters
Name | Description |
---|---|
T | The type of the ICacheableAsyncResultFilter. |
TOptions | The type of delegate setup to configure |
AddLastModifiedHeader(IList<ICacheableAsyncResultFilter>, Action<HttpLastModifiedHeaderOptions>)
Adds an HttpLastModifiedHeader filter to the list.
Declaration
public static void AddLastModifiedHeader(this IList<ICacheableAsyncResultFilter> filters, Action<HttpLastModifiedHeaderOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ICacheableAsyncResultFilter> | filters | The list of cache related HTTP filters. |
System.Action<HttpLastModifiedHeaderOptions> | setup | The HttpLastModifiedHeaderOptions which need to be configured. |
InsertFilter<T, TOptions>(IList<ICacheableAsyncResultFilter>, Int32, Action<TOptions>)
Inserts a HTTP related filter to the list at the specified index
.
Declaration
public static void InsertFilter<T, TOptions>(this IList<ICacheableAsyncResultFilter> filters, int index, Action<TOptions> setup)
where T : ICacheableAsyncResultFilter where TOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ICacheableAsyncResultFilter> | filters | The list of cache related HTTP head filters. |
System.Int32 | index | The zero-based index at which a HTTP related filter should be inserted. |
System.Action<TOptions> | setup | The System.Action<T> which need to be configured. |
Type Parameters
Name | Description |
---|---|
T | The type of the ICacheableAsyncResultFilter. |
TOptions | The type of delegate setup to configure |