8 writes to AllowCacheStorage
Microsoft.AspNetCore.OutputCaching (4)
Policies\DefaultPolicy.cs (3)
26context.AllowCacheStorage = attemptOutputCaching; 49context.AllowCacheStorage = false; 56context.AllowCacheStorage = false;
Policies\NoStorePolicy.cs (1)
20context.AllowCacheStorage = false;
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheMiddlewareTests.cs (2)
725context.AllowCacheStorage = false; 996context.AllowCacheStorage = true;
TestUtils.cs (2)
236AllowCacheStorage = true, 390context.AllowCacheStorage = true;
22 references to AllowCacheStorage
Microsoft.AspNetCore.OutputCaching (4)
OutputCacheMiddleware.cs (4)
128if (context.AllowCacheStorage) 188if (!context.AllowCacheStorage) 391if (context.AllowCacheStorage) 418if (context.AllowCacheStorage && context.OutputCacheStream.BufferingEnabled
Microsoft.AspNetCore.OutputCaching.Tests (18)
OutputCachePoliciesTests.cs (1)
130Assert.False(context.AllowCacheStorage);
OutputCachePolicyBuilderTests.cs (1)
297Assert.False(context.AllowCacheStorage);
OutputCachePolicyProviderTests.cs (16)
56Assert.True(context.AllowCacheStorage); 73Assert.False(context.AllowCacheStorage); 88Assert.False(context.AllowCacheStorage); 106Assert.True(context.AllowCacheStorage); 135Assert.True(context.AllowCacheStorage); 153Assert.True(context.AllowCacheStorage); 171Assert.True(context.AllowCacheStorage); 189Assert.True(context.AllowCacheStorage); 204Assert.False(context.AllowCacheStorage); 217Assert.True(context.AllowCacheStorage); 235Assert.True(context.AllowCacheStorage); 251Assert.True(context.AllowCacheStorage); 328Assert.False(context.AllowCacheStorage); 345Assert.True(context.AllowCacheStorage); 368Assert.True(context.AllowCacheStorage); 391Assert.True(context.AllowCacheStorage);