50 instantiations of OutputCacheOptions
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
26
private static readonly OutputCacheOptions _options =
new
();
Microsoft.AspNetCore.OutputCaching.Tests (49)
DefaultOutputCachePolicyProviderTests.cs (10)
15
var options = new
OutputCacheOptions
();
38
var options = new
OutputCacheOptions
();
54
var options = new
OutputCacheOptions
();
76
var options = new
OutputCacheOptions
();
95
var options = new
OutputCacheOptions
();
110
var options = new
OutputCacheOptions
();
137
var options = new
OutputCacheOptions
();
159
var options = new
OutputCacheOptions
();
177
var options = new
OutputCacheOptions
();
203
var options = new
OutputCacheOptions
();
OutputCacheAttributeTests.cs (2)
48
var options = new
OutputCacheOptions
();
63
var options = new
OutputCacheOptions
();
OutputCacheKeyProviderTests.cs (2)
50
var cacheKeyProvider = TestUtils.CreateTestKeyProvider(new
OutputCacheOptions
()
65
var cacheKeyProvider = TestUtils.CreateTestKeyProvider(new
OutputCacheOptions
()
OutputCacheMiddlewareTests.cs (9)
371
var middleware = TestUtils.CreateTestMiddleware(options: new
OutputCacheOptions
387
var middleware = TestUtils.CreateTestMiddleware(options: new
OutputCacheOptions
424
var options = new
OutputCacheOptions
448
var options = new
OutputCacheOptions
474
var options = new
OutputCacheOptions
816
var options = new
OutputCacheOptions
();
864
var options = new
OutputCacheOptions
();
924
var options = new
OutputCacheOptions
();
1014
var options = new
OutputCacheOptions
();
OutputCachePoliciesTests.cs (1)
151
var options = new
OutputCacheOptions
();
OutputCachePolicyBuilderTests.cs (5)
58
var options = new
OutputCacheOptions
();
76
var options = new
OutputCacheOptions
();
332
var options = new
OutputCacheOptions
();
352
var options = new
OutputCacheOptions
();
370
var options = new
OutputCacheOptions
();
OutputCacheTests.cs (16)
207
var options = new
OutputCacheOptions
{ UseCaseSensitivePaths = true };
230
var options = new
OutputCacheOptions
281
var options = new
OutputCacheOptions
();
328
var options = new
OutputCacheOptions
();
353
var options = new
OutputCacheOptions
();
376
var options = new
OutputCacheOptions
();
399
var options = new
OutputCacheOptions
();
422
var options = new
OutputCacheOptions
();
445
var options = new
OutputCacheOptions
();
468
var options = new
OutputCacheOptions
();
490
var options = new
OutputCacheOptions
();
513
var options = new
OutputCacheOptions
();
535
var options = new
OutputCacheOptions
();
793
var options = new
OutputCacheOptions
819
var builders = TestUtils.CreateBuildersWithOutputCaching(options: new
OutputCacheOptions
()
842
var builders = TestUtils.CreateBuildersWithOutputCaching(options: new
OutputCacheOptions
()
TestUtils.cs (4)
93
return CreateTestKeyProvider(new
OutputCacheOptions
());
208
options = new
OutputCacheOptions
();
230
var actualOptions = options ?? new
OutputCacheOptions
();
252
var actualOptions = options ?? new
OutputCacheOptions
();
64 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
>>();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
26
private static readonly
OutputCacheOptions
_options = new();
Microsoft.AspNetCore.OutputCaching.Tests (49)
DefaultOutputCachePolicyProviderTests.cs (10)
15
var
options = new OutputCacheOptions();
38
var
options = new OutputCacheOptions();
54
var
options = new OutputCacheOptions();
76
var
options = new OutputCacheOptions();
95
var
options = new OutputCacheOptions();
110
var
options = new OutputCacheOptions();
137
var
options = new OutputCacheOptions();
159
var
options = new OutputCacheOptions();
177
var
options = new OutputCacheOptions();
203
var
options = new OutputCacheOptions();
OutputCacheAttributeTests.cs (2)
48
var
options = new OutputCacheOptions();
63
var
options = new OutputCacheOptions();
OutputCacheMiddlewareTests.cs (7)
424
var
options = new OutputCacheOptions
448
var
options = new OutputCacheOptions
474
var
options = new OutputCacheOptions
816
var
options = new OutputCacheOptions();
864
var
options = new OutputCacheOptions();
924
var
options = new OutputCacheOptions();
1014
var
options = new OutputCacheOptions();
OutputCachePoliciesTests.cs (1)
151
var
options = new OutputCacheOptions();
OutputCachePolicyBuilderTests.cs (5)
58
var
options = new OutputCacheOptions();
76
var
options = new OutputCacheOptions();
332
var
options = new OutputCacheOptions();
352
var
options = new OutputCacheOptions();
370
var
options = new OutputCacheOptions();
OutputCacheTests.cs (14)
207
var
options = new OutputCacheOptions { UseCaseSensitivePaths = true };
230
var
options = new OutputCacheOptions
281
var
options = new OutputCacheOptions();
328
var
options = new OutputCacheOptions();
353
var
options = new OutputCacheOptions();
376
var
options = new OutputCacheOptions();
399
var
options = new OutputCacheOptions();
422
var
options = new OutputCacheOptions();
445
var
options = new OutputCacheOptions();
468
var
options = new OutputCacheOptions();
490
var
options = new OutputCacheOptions();
513
var
options = new OutputCacheOptions();
535
var
options = new OutputCacheOptions();
793
var
options = new OutputCacheOptions
TestUtils.cs (10)
96
internal static IOutputCacheKeyProvider CreateTestKeyProvider(
OutputCacheOptions
options)
103
OutputCacheOptions
? options = null,
133
OutputCacheOptions
? options = null,
192
OutputCacheOptions
? options = null,
228
internal static OutputCacheContext CreateTestContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null,
OutputCacheOptions
? options = null, ITestSink? testSink = null)
230
var
actualOptions = options ?? new OutputCacheOptions();
233
serviceProvider.Setup(x => x.GetService(typeof(IOptions<
OutputCacheOptions
>))).Returns(Options.Create(actualOptions));
250
internal static OutputCacheContext CreateUninitializedContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null,
OutputCacheOptions
? options = null, ITestSink? testSink = null)
252
var
actualOptions = options ?? new OutputCacheOptions();
255
serviceProvider.Setup(x => x.GetService(typeof(IOptions<
OutputCacheOptions
>))).Returns(Options.Create(actualOptions));