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