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