20 implementations of CacheRequestAsync
Microsoft.AspNetCore.OutputCaching (18)
Policies\CompositePolicy.cs (1)
23
async ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\DefaultPolicy.cs (1)
21
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\EmptyPolicy.cs (1)
18
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\EnableCachePolicy.cs (1)
19
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\ExpirationPolicy.cs (1)
23
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\LockingPolicy.cs (1)
29
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NamedPolicy.cs (1)
54
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NoLookupPolicy.cs (1)
32
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NoStorePolicy.cs (1)
32
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\PredicatePolicy.cs (1)
28
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\SetCacheKeyPrefixPolicy.cs (1)
24
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\TagsPolicy.cs (1)
23
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\TypedPolicy.cs (1)
38
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByHeaderPolicy.cs (1)
39
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByHostPolicy.cs (1)
25
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByQueryPolicy.cs (1)
40
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByRouteValuePolicy.cs (1)
39
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByValuePolicy.cs (1)
28
ValueTask IOutputCachePolicy.
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheMiddlewareTests.cs (1)
993
public ValueTask
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellation)
TestUtils.cs (1)
387
public ValueTask
CacheRequestAsync
(OutputCacheContext context, CancellationToken cancellationToken)
66 references to CacheRequestAsync
Microsoft.AspNetCore.OutputCaching (5)
OutputCacheMiddleware.cs (1)
103
await policy.
CacheRequestAsync
(context, httpContext.RequestAborted);
Policies\CompositePolicy.cs (1)
27
await policy.
CacheRequestAsync
(context, cancellationToken);
Policies\NamedPolicy.cs (1)
63
return policy.
CacheRequestAsync
(context, cancellationToken);
Policies\PredicatePolicy.cs (1)
30
return ExecuteAwaited(static (policy, context, cancellationToken) => policy.
CacheRequestAsync
(context, cancellationToken), _policy, context, cancellationToken);
Policies\TypedPolicy.cs (1)
40
return CreatePolicy(context)?.
CacheRequestAsync
(context, cancellationToken) ?? ValueTask.CompletedTask;
Microsoft.AspNetCore.OutputCaching.Tests (61)
OutputCacheAttributeTests.cs (8)
28
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
40
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
54
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
69
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
82
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
97
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
116
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
129
await attribute.BuildPolicy().
CacheRequestAsync
(context, cancellation: default);
OutputCachePoliciesTests.cs (24)
16
await policy.
CacheRequestAsync
(context, default);
27
await policy.
CacheRequestAsync
(context, default);
38
await policy.
CacheRequestAsync
(context, default);
49
await policy.
CacheRequestAsync
(context, default);
61
await policy.
CacheRequestAsync
(context, default);
72
await policy.
CacheRequestAsync
(context, default);
84
await policy.
CacheRequestAsync
(context, default);
95
await policy.
CacheRequestAsync
(context, default);
106
await policy.
CacheRequestAsync
(context, default);
117
await policy.
CacheRequestAsync
(context, default);
128
await policy.
CacheRequestAsync
(context, default);
143
await predicate.
CacheRequestAsync
(context, default);
158
await policy.
CacheRequestAsync
(context, default);
164
await policy.
CacheRequestAsync
(context, default);
176
await policy.
CacheRequestAsync
(context, default);
189
await policy.
CacheRequestAsync
(context, default);
202
await policy.
CacheRequestAsync
(context, default);
215
await policy.
CacheRequestAsync
(context, default);
227
await policy.
CacheRequestAsync
(context, default);
240
await policy.
CacheRequestAsync
(context, default);
253
await policy.
CacheRequestAsync
(context, default);
266
await policy.
CacheRequestAsync
(context, default);
279
await policy.
CacheRequestAsync
(context, default);
293
await policy.
CacheRequestAsync
(context, default);
OutputCachePolicyBuilderTests.cs (24)
37
await policy.
CacheRequestAsync
(context, cancellation: default);
50
await policy.
CacheRequestAsync
(context, cancellation: default);
67
await policy.
CacheRequestAsync
(context, cancellation: default);
85
await policy.
CacheRequestAsync
(context, cancellation: default);
98
await policy.
CacheRequestAsync
(context, cancellation: default);
112
await policy.
CacheRequestAsync
(context, cancellation: default);
128
await policy.
CacheRequestAsync
(context, cancellation: default);
148
await policy.
CacheRequestAsync
(context, cancellation: default);
168
await policy.
CacheRequestAsync
(context, cancellation: default);
188
await policy.
CacheRequestAsync
(context, cancellation: default);
207
await policy1.
CacheRequestAsync
(context1, cancellation: default);
208
await policy2.
CacheRequestAsync
(context2, cancellation: default);
209
await policy3.
CacheRequestAsync
(context3, cancellation: default);
228
await policy.
CacheRequestAsync
(context, cancellation: default);
243
await policy.
CacheRequestAsync
(context, cancellation: default);
257
await policy.
CacheRequestAsync
(context, cancellation: default);
269
await policy.
CacheRequestAsync
(context, cancellation: default);
281
await policy.
CacheRequestAsync
(context, cancellation: default);
293
await policy.
CacheRequestAsync
(context, cancellation: default);
308
await policy.
CacheRequestAsync
(context, cancellation: default);
320
await policy.
CacheRequestAsync
(context, cancellation: default);
341
await policy.
CacheRequestAsync
(context, default);
359
await policy.
CacheRequestAsync
(context, default);
377
await policy.
CacheRequestAsync
(context, default);
OutputCachePolicyProviderTests.cs (5)
53
await policy.
CacheRequestAsync
(context, default);
70
await policy.
CacheRequestAsync
(context, default);
86
await policy.
CacheRequestAsync
(context, default);
104
await policy.
CacheRequestAsync
(context, default);
120
await policy.
CacheRequestAsync
(context, default);