42 writes to Duration
Microsoft.AspNetCore.Mvc.Core (1)
ResponseCacheAttribute.cs (1)
109Duration = _duration,
Microsoft.AspNetCore.Mvc.Core.Test (40)
Filters\ResponseCacheFilterExecutorTest.cs (30)
21Duration = null 39Duration = null 53Duration = null 73Duration = 0, 84Duration = 0, 94Duration = 0, 105Duration = 100, 115Duration = 10, 125Duration = 10, 135Duration = 10, 145Duration = null, 155Duration = 31536000, 165Duration = 20, 201Duration = 0, 211Duration = 0, 222Duration = 100, 257Duration = 10, 268Duration = 0, 279Duration = 10, 290Duration = 10, 301Duration = 31536000, 338Duration = 10, 349Duration = 0, 360Duration = 10, 371Duration = 10, 383Duration = 31536000, 419Duration = 0, 439Duration = 0, 461Duration = 10 480Duration = 10,
ResponseCacheAttributeTest.cs (10)
31cacheProfiles.Add("Test", new CacheProfile { Duration = 20 }); 51cacheProfiles.Add("Test", new CacheProfile { Duration = 20 }); 69{ Duration = 20, Location = ResponseCacheLocation.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } } 77{ Duration = 0, Location = ResponseCacheLocation.None, NoStore = true, VaryByHeader = null, VaryByQueryKeys = null } 94Duration = 10, 101{ Duration = 20, Location = ResponseCacheLocation.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } } 113Duration = 10, 120{ Duration = 534, Location = ResponseCacheLocation.Client, NoStore = false, VaryByHeader = "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } } 138{ Duration = 534, Location = ResponseCacheLocation.Client, NoStore = false, VaryByHeader = "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } } 150{ Duration = 5234, Location = ResponseCacheLocation.Any, NoStore = false, VaryByHeader = null, VaryByQueryKeys = null }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
101Duration = 14,
5 references to Duration
Microsoft.AspNetCore.Mvc.Core (4)
Filters\ResponseCacheFilterExecutor.cs (3)
27get => _cacheDuration ?? _cacheProfile.Duration ?? 0; 62if (_cacheProfile.Duration == null && _cacheDuration == null) 107if (Location == ResponseCacheLocation.None && _cacheProfile.Duration == null && _cacheDuration == null)
ResponseCacheAttribute.cs (1)
101_duration = _duration ?? selectedProfile?.Duration;
Microsoft.AspNetCore.Mvc.Core.Test (1)
ResponseCacheAttributeTest.cs (1)
167Assert.Equal(expectedProfile.Duration, responseCacheFilter.Duration);