49 instantiations of CacheProfile
Microsoft.AspNetCore.Mvc.Core (1)
ResponseCacheAttribute.cs (1)
107
return new
CacheProfile
Microsoft.AspNetCore.Mvc.Core.Test (47)
Filters\ResponseCacheFilterExecutorTest.cs (32)
18
new
CacheProfile
37
new
CacheProfile
51
new
CacheProfile
()
71
new
CacheProfile
82
new
CacheProfile
92
new
CacheProfile
103
new
CacheProfile
113
new
CacheProfile
123
new
CacheProfile
133
new
CacheProfile
143
new
CacheProfile
153
new
CacheProfile
163
new
CacheProfile
199
new
CacheProfile
209
new
CacheProfile
220
new
CacheProfile
255
new
CacheProfile
266
new
CacheProfile
277
new
CacheProfile
288
new
CacheProfile
299
new
CacheProfile
336
new
CacheProfile
347
new
CacheProfile
358
new
CacheProfile
369
new
CacheProfile
381
new
CacheProfile
417
new
CacheProfile
437
new
CacheProfile
459
new
CacheProfile
478
new
CacheProfile
498
new
CacheProfile
518
new
CacheProfile
ResponseCacheAttributeTest.cs (15)
30
cacheProfiles.Add("Cache20Sec", new
CacheProfile
{ NoStore = true });
31
cacheProfiles.Add("Test", new
CacheProfile
{ Duration = 20 });
50
cacheProfiles.Add("Cache20Sec", new
CacheProfile
{ NoStore = true });
51
cacheProfiles.Add("Test", new
CacheProfile
{ Duration = 20 });
68
new
CacheProfile
76
new
CacheProfile
92
new Dictionary<string, CacheProfile> { { "TestCacheProfile", new
CacheProfile
100
new
CacheProfile
111
new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new
CacheProfile
119
new
CacheProfile
130
new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new
CacheProfile
137
new
CacheProfile
148
new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new
CacheProfile
() } },
149
new
CacheProfile
190
cacheProfiles.Add("Test", new
CacheProfile
{ NoStore = false });
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
99
options.Value.CacheProfiles.Add("TestCacheProfile", new
CacheProfile
34 references to CacheProfile
Microsoft.AspNetCore.Mvc.Core (10)
Filters\ResponseCacheFilter.cs (1)
22
public ResponseCacheFilter(
CacheProfile
cacheProfile, ILoggerFactory loggerFactory)
Filters\ResponseCacheFilterExecutor.cs (2)
13
private readonly
CacheProfile
_cacheProfile;
20
public ResponseCacheFilterExecutor(
CacheProfile
cacheProfile)
MvcOptions.cs (3)
40
CacheProfiles = new Dictionary<string,
CacheProfile
>(StringComparer.OrdinalIgnoreCase);
76
/// Gets a Dictionary of CacheProfile Names, <see cref="
CacheProfile
"/> which are pre-defined settings for
79
public IDictionary<string,
CacheProfile
> CacheProfiles { get; }
ResponseCacheAttribute.cs (4)
81
/// Gets the <see cref="
CacheProfile
"/> for this attribute.
84
public
CacheProfile
GetCacheProfile(MvcOptions options)
86
CacheProfile
? selectedProfile = null;
124
var
cacheProfile = GetCacheProfile(optionsAccessor.Value);
Microsoft.AspNetCore.Mvc.Core.Test (22)
Filters\ResponseCacheFilterExecutorTest.cs (12)
64
public static TheoryData<
CacheProfile
, string> CacheControlData
68
return new TheoryData<
CacheProfile
, string>
178
public void Execute_CanSetCacheControlHeaders(
CacheProfile
cacheProfile, string output)
191
public static TheoryData<
CacheProfile
, string> NoStoreData
195
return new TheoryData<
CacheProfile
, string>
235
public void Execute_DoesNotSetLocationOrDuration_IfNoStoreIsSet(
CacheProfile
cacheProfile, string output)
248
public static TheoryData<
CacheProfile
, string, string> VaryByHeaderData
252
return new TheoryData<
CacheProfile
, string, string>
315
public void ResponseCacheCanSetVaryByHeader(
CacheProfile
cacheProfile, string varyOutput, string cacheControlOutput)
329
public static TheoryData<
CacheProfile
, string[], string> VaryByQueryKeyData
333
return new TheoryData<
CacheProfile
, string[], string>
397
public void ResponseCacheCanSetVaryByQueryKeys(
CacheProfile
cacheProfile, string[] varyOutput, string cacheControlOutput)
ResponseCacheAttributeTest.cs (10)
29
var cacheProfiles = new Dictionary<string,
CacheProfile
>();
49
var cacheProfiles = new Dictionary<string,
CacheProfile
>();
92
new Dictionary<string,
CacheProfile
> { { "TestCacheProfile", new CacheProfile
111
new Dictionary<string,
CacheProfile
>() { { "TestCacheProfile", new CacheProfile
130
new Dictionary<string,
CacheProfile
>() { { "TestCacheProfile", new CacheProfile
148
new Dictionary<string,
CacheProfile
>() { { "TestCacheProfile", new CacheProfile() } },
159
Dictionary<string,
CacheProfile
> cacheProfiles,
160
CacheProfile
expectedProfile)
189
var cacheProfiles = new Dictionary<string,
CacheProfile
>();
323
private IServiceProvider GetServiceProvider(Dictionary<string,
CacheProfile
> cacheProfiles)
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (1)
35
var
cacheProfile = attribute.GetCacheProfile(_mvcOptions);
Filters\PageResponseCacheFilter.cs (1)
23
public PageResponseCacheFilter(
CacheProfile
cacheProfile, ILoggerFactory loggerFactory)