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