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