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