20 implementations of ServeFromCacheAsync
Microsoft.AspNetCore.OutputCaching (18)
Policies\CompositePolicy.cs (1)
32
async ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\DefaultPolicy.cs (1)
36
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\EmptyPolicy.cs (1)
24
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\EnableCachePolicy.cs (1)
33
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\ExpirationPolicy.cs (1)
31
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\LockingPolicy.cs (1)
37
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NamedPolicy.cs (1)
41
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NoLookupPolicy.cs (1)
26
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\NoStorePolicy.cs (1)
26
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\PredicatePolicy.cs (1)
34
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\SetCacheKeyPrefixPolicy.cs (1)
30
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\TagsPolicy.cs (1)
34
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\TypedPolicy.cs (1)
44
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByHeaderPolicy.cs (1)
54
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByHostPolicy.cs (1)
33
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByQueryPolicy.cs (1)
62
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByRouteValuePolicy.cs (1)
46
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Policies\VaryByValuePolicy.cs (1)
34
ValueTask IOutputCachePolicy.
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheMiddlewareTests.cs (1)
1000
public ValueTask
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellation)
TestUtils.cs (1)
394
public ValueTask
ServeFromCacheAsync
(OutputCacheContext context, CancellationToken cancellationToken)
4 references to ServeFromCacheAsync
Microsoft.AspNetCore.OutputCaching (4)
Policies\CompositePolicy.cs (1)
36
await policy.
ServeFromCacheAsync
(context, cancellationToken);
Policies\NamedPolicy.cs (1)
50
return policy.
ServeFromCacheAsync
(context, cancellationToken);
Policies\PredicatePolicy.cs (1)
36
return ExecuteAwaited(static (policy, context, cancellationToken) => policy.
ServeFromCacheAsync
(context, cancellationToken), _policy, context, cancellationToken);
Policies\TypedPolicy.cs (1)
46
return CreatePolicy(context)?.
ServeFromCacheAsync
(context, cancellationToken) ?? ValueTask.CompletedTask;