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