Skip to content

RemoteRepositoryCatalogProvider.RepositorySnapshot

ClassAssetInventoryAssetInventory.Editor
protected sealed class RemoteRepositoryCatalogProvider.RepositorySnapshot

Holds a repository revision and its validated file listing for consistent catalog and download resolution.

public string Repository

Returns

System.String

public string Revision

Returns

System.String

public List<RemoteRepositoryCatalogProvider.RepositoryFile> Files

Returns

System.Collections.Generic.List{AssetInventory.RemoteRepositoryCatalogProvider.RepositoryFile}

public string RawUrl(string path)

Builds a raw-content URL for a relative file path at this snapshot's recorded revision.

Parameters

Name Type
path System.String

Returns

System.String

public RemoteRepositoryCatalogProvider.RepositoryFile Find(string path)

The file at an exact path, or null. Validated snapshots never change, so the index is built once and may be shared across threads.

Parameters

Name Type
path System.String

Returns

AssetInventory.RemoteRepositoryCatalogProvider.RepositoryFile

public RepositorySnapshot()