40 instantiations of OutputCacheOptions
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
26
private static readonly OutputCacheOptions _options =
new
();
Microsoft.AspNetCore.OutputCaching.Tests (39)
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
());
207
options = new
OutputCacheOptions
();
226
serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new
OutputCacheOptions
()));
246
serviceProvider.Setup(x => x.GetService(typeof(IOptions<OutputCacheOptions>))).Returns(Options.Create(options ?? new
OutputCacheOptions
()));
52 references to OutputCacheOptions
Microsoft.AspNetCore.OutputCaching (14)
OutputCacheKeyProvider.cs (2)
21
private readonly
OutputCacheOptions
_options;
23
internal OutputCacheKeyProvider(ObjectPoolProvider poolProvider, IOptions<
OutputCacheOptions
> options)
OutputCacheMiddleware.cs (3)
23
private readonly
OutputCacheOptions
_options;
40
IOptions<
OutputCacheOptions
> options,
56
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>();
33
var outputCacheOptions = sp.GetRequiredService<IOptions<
OutputCacheOptions
>>();
46
/// <param name="configureOptions">A delegate to configure the <see cref="
OutputCacheOptions
"/>.</param>
48
public static IServiceCollection AddOutputCache(this IServiceCollection services, Action<
OutputCacheOptions
> configureOptions)
Policies\NamedPolicy.cs (2)
15
private IOptions<
OutputCacheOptions
>? _options;
72
_options ??= context.HttpContext.RequestServices.GetRequiredService<IOptions<
OutputCacheOptions
>>();
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 (37)
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 (8)
96
internal static IOutputCacheKeyProvider CreateTestKeyProvider(
OutputCacheOptions
options)
103
OutputCacheOptions
? options = null,
133
OutputCacheOptions
? options = null,
192
OutputCacheOptions
? options = null,
222
internal static OutputCacheContext CreateTestContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null,
OutputCacheOptions
? options = null, ITestSink? testSink = null)
226
serviceProvider.Setup(x => x.GetService(typeof(IOptions<
OutputCacheOptions
>))).Returns(Options.Create(options ?? new OutputCacheOptions()));
242
internal static OutputCacheContext CreateUninitializedContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null,
OutputCacheOptions
? options = null, ITestSink? testSink = null)
246
serviceProvider.Setup(x => x.GetService(typeof(IOptions<
OutputCacheOptions
>))).Returns(Options.Create(options ?? new OutputCacheOptions()));