Zum Hauptinhalt springen

ICancellableCatalogRefresh

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.ModelCatalogs

A catalog whose refresh can be canceled, e.g. when the time limit of the CK MSBuild tasks is reached.

public interface ICancellableCatalogRefresh

Remarks:

A separate interface, so ICatalog and its implementations outside this repository keep their members unchanged (the contracts also target netstandard2.0, which has no default interface methods).

Methods​

RefreshCatalogAsync(Object, Boolean, CancellationToken)​

Refreshes the catalog like ICatalog.RefreshCatalogAsync(Object, Boolean) and stops when cancellationToken is canceled.

Task RefreshCatalogAsync(object sourceIdentifier, bool forceRefresh, CancellationToken cancellationToken)

Parameters​

sourceIdentifier Object
An object, which 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

Returns​

Task