Partager via


ICacheInvalidator Interface

Definition

Exposes an event designed to tell when the cache must be updated and how.

public interface ICacheInvalidator
type ICacheInvalidator = interface
Public Interface ICacheInvalidator

Examples

[ExportAttribute(typeof(ICacheInvalidator))] [VsStateTargetAttribute(OpenedFolder)] // required

Methods

InvalidateCacheIfRequiredAsync(CancellationToken)

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

Events

InvalidateCache

When raised, it informs the cache that its content is invalid, and starts to update it with the given strategy.

Applies to