ICacheInvalidator.InvalidateCacheIfRequiredAsync(CancellationToken) 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.
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.