IRepositoryInstalledVersionLister
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Services
Optional capability of a model repository: lists every version of a model the repository
holds together with its state, not only the versions the dependency resolver considers
(IRepositoryVersionLister). The repository dependency resolver uses it to explain a rejected
dependency in terms of the repository: "Industry.Basic-[2.5,3.0): the tenant has no Available version of
Industry.Basic (installed: 2.5.0 ResolveFailed)". A repository that does not implement it is reported through
IRepositoryVersionLister only.
public interface IRepositoryInstalledVersionLister
Methods
ListInstalledVersionsAsync(String, Object)
Returns all versions of the model ckModelName in the repository, ascending by version.
Best effort: an unreadable repository must not mask the original error. A wrapper whose underlying
repository cannot list throws NotSupportedException (an empty list means "none installed").
Task<IReadOnlyList<RepositoryModelVersion>> ListInstalledVersionsAsync(string ckModelName, object sourceIdentifier)
Parameters
ckModelName String
The construction kit model name
sourceIdentifier Object
An object that describes the source the repository should search