IOutputCachePolicy.ServeResponseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the OutputCacheContext before the response is served and can be cached. At that point cacheability of the response can be updated.
public System.Threading.Tasks.ValueTask ServeResponseAsync (Microsoft.AspNetCore.OutputCaching.OutputCacheContext context, System.Threading.CancellationToken cancellation);
abstract member ServeResponseAsync : Microsoft.AspNetCore.OutputCaching.OutputCacheContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function ServeResponseAsync (context As OutputCacheContext, cancellation As CancellationToken) As ValueTask
Parameters
- context
- OutputCacheContext
The current request's cache context.
- cancellation
- CancellationToken
The token to monitor for cancellation requests.