40 instantiations of OutputCacheOptions
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
26private static readonly OutputCacheOptions _options = new();
Microsoft.AspNetCore.OutputCaching.Tests (39)
OutputCacheAttributeTests.cs (2)
48var options = new OutputCacheOptions(); 63var options = new OutputCacheOptions();
OutputCacheKeyProviderTests.cs (2)
50var cacheKeyProvider = TestUtils.CreateTestKeyProvider(new OutputCacheOptions() 65var cacheKeyProvider = TestUtils.CreateTestKeyProvider(new OutputCacheOptions()
OutputCacheMiddlewareTests.cs (9)
371var middleware = TestUtils.CreateTestMiddleware(options: new OutputCacheOptions 387var middleware = TestUtils.CreateTestMiddleware(options: new OutputCacheOptions 424var options = new OutputCacheOptions 448var options = new OutputCacheOptions 474var options = new OutputCacheOptions 816var options = new OutputCacheOptions(); 864var options = new OutputCacheOptions(); 923var options = new OutputCacheOptions(); 1013var options = new OutputCacheOptions();
OutputCachePoliciesTests.cs (1)
151var options = new OutputCacheOptions();
OutputCachePolicyBuilderTests.cs (5)
58var options = new OutputCacheOptions(); 76var options = new OutputCacheOptions(); 332var options = new OutputCacheOptions(); 352var options = new OutputCacheOptions(); 370var options = new OutputCacheOptions();
OutputCacheTests.cs (16)
207var options = new OutputCacheOptions { UseCaseSensitivePaths = true }; 230var options = new OutputCacheOptions 281var options = new OutputCacheOptions(); 328var options = new OutputCacheOptions(); 353var options = new OutputCacheOptions(); 376var options = new OutputCacheOptions(); 399var options = new OutputCacheOptions(); 422var options = new OutputCacheOptions(); 445var options = new OutputCacheOptions(); 468var options = new OutputCacheOptions(); 490var options = new OutputCacheOptions(); 513var options = new OutputCacheOptions(); 535var options = new OutputCacheOptions(); 793var options = new OutputCacheOptions 819var builders = TestUtils.CreateBuildersWithOutputCaching(options: new OutputCacheOptions() 842var builders = TestUtils.CreateBuildersWithOutputCaching(options: new OutputCacheOptions()
TestUtils.cs (4)
93return CreateTestKeyProvider(new OutputCacheOptions()); 206options = new OutputCacheOptions(); 225serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new OutputCacheOptions())); 245serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new OutputCacheOptions()));
52 references to OutputCacheOptions
Microsoft.AspNetCore.OutputCaching (14)
OutputCacheKeyProvider.cs (2)
21private readonly OutputCacheOptions _options; 23internal OutputCacheKeyProvider(ObjectPoolProvider poolProvider, IOptions<OutputCacheOptions> options)
OutputCacheMiddleware.cs (3)
23private readonly OutputCacheOptions _options; 40IOptions<OutputCacheOptions> options, 56IOptions<OutputCacheOptions> options,
OutputCacheOptionsSetup.cs (2)
8internal sealed class OutputCacheOptionsSetup : IConfigureOptions<OutputCacheOptions> 17public void Configure(OutputCacheOptions options)
OutputCacheServiceCollectionExtensions.cs (4)
27services.AddTransient<IConfigureOptions<OutputCacheOptions>, OutputCacheOptionsSetup>(); 33var outputCacheOptions = sp.GetRequiredService<IOptions<OutputCacheOptions>>(); 46/// <param name="configureOptions">A delegate to configure the <see cref="OutputCacheOptions"/>.</param> 48public static IServiceCollection AddOutputCache(this IServiceCollection services, Action<OutputCacheOptions> configureOptions)
Policies\NamedPolicy.cs (2)
15private IOptions<OutputCacheOptions>? _options; 72_options ??= context.HttpContext.RequestServices.GetRequiredService<IOptions<OutputCacheOptions>>();
Policies\TypedPolicy.cs (1)
33var options = context.HttpContext.RequestServices.GetRequiredService<IOptions<OutputCacheOptions>>();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
26private static readonly OutputCacheOptions _options = new();
Microsoft.AspNetCore.OutputCaching.Tests (37)
OutputCacheAttributeTests.cs (2)
48var options = new OutputCacheOptions(); 63var options = new OutputCacheOptions();
OutputCacheMiddlewareTests.cs (7)
424var options = new OutputCacheOptions 448var options = new OutputCacheOptions 474var options = new OutputCacheOptions 816var options = new OutputCacheOptions(); 864var options = new OutputCacheOptions(); 923var options = new OutputCacheOptions(); 1013var options = new OutputCacheOptions();
OutputCachePoliciesTests.cs (1)
151var options = new OutputCacheOptions();
OutputCachePolicyBuilderTests.cs (5)
58var options = new OutputCacheOptions(); 76var options = new OutputCacheOptions(); 332var options = new OutputCacheOptions(); 352var options = new OutputCacheOptions(); 370var options = new OutputCacheOptions();
OutputCacheTests.cs (14)
207var options = new OutputCacheOptions { UseCaseSensitivePaths = true }; 230var options = new OutputCacheOptions 281var options = new OutputCacheOptions(); 328var options = new OutputCacheOptions(); 353var options = new OutputCacheOptions(); 376var options = new OutputCacheOptions(); 399var options = new OutputCacheOptions(); 422var options = new OutputCacheOptions(); 445var options = new OutputCacheOptions(); 468var options = new OutputCacheOptions(); 490var options = new OutputCacheOptions(); 513var options = new OutputCacheOptions(); 535var options = new OutputCacheOptions(); 793var options = new OutputCacheOptions
TestUtils.cs (8)
96internal static IOutputCacheKeyProvider CreateTestKeyProvider(OutputCacheOptions options) 103OutputCacheOptions? options = null, 133OutputCacheOptions? options = null, 191OutputCacheOptions? options = null, 221internal static OutputCacheContext CreateTestContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null) 225serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new OutputCacheOptions())); 241internal static OutputCacheContext CreateUninitializedContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null) 245serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new OutputCacheOptions()));