Aracılığıyla paylaş


IOutputCachePolicy.CacheRequestAsync Yöntem

Tanım

Önbellek ara yazılımı çağrılmadan önce OutputCacheContext güncelleştirir. Bu noktada önbellek ara yazılımı istek için hala etkinleştirilebilir veya devre dışı bırakılabilir.

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

Parametreler

context
OutputCacheContext

Geçerli isteğin önbellek bağlamı.

cancellation
CancellationToken

İptal isteklerini izlemek için belirteç.

Döndürülenler

Şunlara uygulanır