ICancellableCatalogCacheRefresh
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Services
Refreshes the caches of all catalogs and can be canceled, e.g. when the time limit of the CK MSBuild tasks is reached. Implemented by the engine's catalog service and catalog manager.
public interface ICancellableCatalogCacheRefresh
Remarks:
A separate interface, so ICatalogService keeps its members unchanged for its implementations and fakes in other repositories (the contracts also target netstandard2.0, which has no default interface methods).
Methods
RefreshAllCatalogCachesAsync(Object, Boolean, CancellationToken)
Refreshes the catalog cache for all catalogs and stops when cancellationToken is canceled.
Task RefreshAllCatalogCachesAsync(object sourceIdentifier, bool forceRefresh, CancellationToken cancellationToken)
Parameters
sourceIdentifier Object
An object that describes the source which the catalog should search, set it to
null to use default
forceRefresh Boolean
When true, the refresh bypasses the cache freshness window and always contacts the
source
cancellationToken CancellationToken
Cancels the refresh