IOutputCachePolicy.ServeFromCacheAsync 메서드

정의

캐시된 응답을 사용하기 전에 OutputCacheContext 업데이트합니다. 이 시점에서 캐시된 응답의 새로 고침을 업데이트할 수 있습니다.

public System.Threading.Tasks.ValueTask ServeFromCacheAsync (Microsoft.AspNetCore.OutputCaching.OutputCacheContext context, System.Threading.CancellationToken cancellation);
abstract member ServeFromCacheAsync : Microsoft.AspNetCore.OutputCaching.OutputCacheContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function ServeFromCacheAsync (context As OutputCacheContext, cancellation As CancellationToken) As ValueTask

매개 변수

context
OutputCacheContext

현재 요청의 캐시 컨텍스트입니다.

cancellation
CancellationToken

취소 요청을 모니터링할 토큰입니다.

반환

적용 대상