ICacheInvalidator Interface
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.
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. |