14 references to OutputCacheOptions
Microsoft.AspNetCore.OutputCaching (14)
DefaultOutputCachePolicyProvider.cs (2)
10
private readonly
OutputCacheOptions
_options;
16
public DefaultOutputCachePolicyProvider(IOptions<
OutputCacheOptions
> options)
OutputCacheKeyProvider.cs (2)
21
private readonly
OutputCacheOptions
_options;
23
internal OutputCacheKeyProvider(ObjectPoolProvider poolProvider, IOptions<
OutputCacheOptions
> options)
OutputCacheMiddleware.cs (3)
23
private readonly
OutputCacheOptions
_options;
42
IOptions<
OutputCacheOptions
> options,
60
IOptions<
OutputCacheOptions
> options,
OutputCacheOptionsSetup.cs (2)
8
internal sealed class OutputCacheOptionsSetup : IConfigureOptions<
OutputCacheOptions
>
17
public void Configure(
OutputCacheOptions
options)
OutputCacheServiceCollectionExtensions.cs (4)
27
services.AddTransient<IConfigureOptions<
OutputCacheOptions
>, OutputCacheOptionsSetup>();
34
var outputCacheOptions = sp.GetRequiredService<IOptions<
OutputCacheOptions
>>();
47
/// <param name="configureOptions">A delegate to configure the <see cref="
OutputCacheOptions
"/>.</param>
49
public static IServiceCollection AddOutputCache(this IServiceCollection services, Action<
OutputCacheOptions
> configureOptions)
Policies\TypedPolicy.cs (1)
33
var options = context.HttpContext.RequestServices.GetRequiredService<IOptions<
OutputCacheOptions
>>();