36 writes to Location
Microsoft.AspNetCore.Mvc.Core (1)
ResponseCacheAttribute.cs (1)
110
Location
= _location,
Microsoft.AspNetCore.Mvc.Core.Test (35)
Filters\ResponseCacheFilterExecutorTest.cs (26)
74
Location
= ResponseCacheLocation.Any,
85
Location
= ResponseCacheLocation.Client,
95
Location
= ResponseCacheLocation.Any,
106
Location
= ResponseCacheLocation.Any,
116
Location
= ResponseCacheLocation.Client,
126
Location
= ResponseCacheLocation.Any,
136
Location
= ResponseCacheLocation.None,
146
Location
= ResponseCacheLocation.None,
156
Location
= ResponseCacheLocation.Any,
166
Location
= ResponseCacheLocation.Any,
202
Location
= ResponseCacheLocation.Client,
212
Location
= ResponseCacheLocation.Any,
223
Location
= ResponseCacheLocation.Any,
258
Location
= ResponseCacheLocation.Any,
269
Location
= ResponseCacheLocation.Any,
280
Location
= ResponseCacheLocation.Client,
291
Location
= ResponseCacheLocation.Client,
302
Location
= ResponseCacheLocation.Any,
339
Location
= ResponseCacheLocation.Any,
350
Location
= ResponseCacheLocation.Any,
361
Location
= ResponseCacheLocation.Client,
372
Location
= ResponseCacheLocation.Client,
384
Location
= ResponseCacheLocation.Any,
420
Location
= ResponseCacheLocation.None,
440
Location
= ResponseCacheLocation.None,
481
Location
= ResponseCacheLocation.None
ResponseCacheAttributeTest.cs (9)
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 }
95
Location
= ResponseCacheLocation.Client,
101
{ Duration = 20,
Location
= ResponseCacheLocation.Any, NoStore = false, VaryByHeader = "Accept", VaryByQueryKeys = new[] { "QueryKey" } }
114
Location
= ResponseCacheLocation.Client,
120
{ Duration = 534,
Location
= ResponseCacheLocation.Client, NoStore = false, VaryByHeader = "Test", VaryByQueryKeys = new[] { "ProfileQueryKey" } }
132
Location
= ResponseCacheLocation.Client,
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 }
4 references to Location
Microsoft.AspNetCore.Mvc.Core (3)
Filters\ResponseCacheFilterExecutor.cs (2)
33
get => _cacheLocation ?? _cacheProfile.
Location
?? ResponseCacheLocation.Any;
59
if (!(NoStore || _cacheProfile.
Location
== ResponseCacheLocation.None || _cacheLocation == ResponseCacheLocation.None))
ResponseCacheAttribute.cs (1)
103
_location = _location ?? selectedProfile?.
Location
;
Microsoft.AspNetCore.Mvc.Core.Test (1)
ResponseCacheAttributeTest.cs (1)
168
Assert.Equal(expectedProfile.
Location
, responseCacheFilter.Location);