Skip to main content

IRepositoryVersionLister

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Services

Optional capability of a model repository: lists the versions of a model that the dependency resolver can see, so that a rejected dependency is reported with the range and the versions that are installed ("System-[2.5,3.0) does not match any visible version of System (2.4.9)"). Implemented next to IRepositoryManagementService / IModelRepository; a repository that does not implement it is reported without versions.

public interface IRepositoryVersionLister

Methods​

ListVersionsAsync(String, Object)​

Returns the versions of the model ckModelName that IsExistingAsync considers, in ascending order. Best effort: an unreadable repository must not mask the original error.

Task<IReadOnlyList<CkModelId>> ListVersionsAsync(string ckModelName, object sourceIdentifier)

Parameters​

ckModelName String
The construction kit model name

sourceIdentifier Object
An object that describes the source the repository should search

Returns​

Task<IReadOnlyList<CkModelId>>