Condividi tramite


ICacheInvalidator.InvalidateCacheIfRequiredAsync(CancellationToken) Method

Definition

Checks on demand whether the cache must be invalidated or not, and invalidate it if required.

public System.Threading.Tasks.Task<bool> InvalidateCacheIfRequiredAsync (System.Threading.CancellationToken cancellationToken);
abstract member InvalidateCacheIfRequiredAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function InvalidateCacheIfRequiredAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

cancellationToken
CancellationToken

Returns

Return True if the cache has been invalidated. When doing so, it implicitly expect that this method raised InvalidateCache event at least once.

Applies to