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