Skip to content

AmbientCgCatalogProvider

ClassAssetInventoryAssetInventory.Editor
public sealed class AmbientCgCatalogProvider : RemoteCatalogProviderBase, IRemoteCatalogProvider, IRemoteCatalogAccessProbe

Provides ambientCG catalog metadata and downloadable asset variants with release-version checks.

public AmbientCgCatalogProvider(HttpClient client = null)

Creates an ambientCG provider with an optional HTTP client for catalog and download-manifest requests.

Parameters

Name Type
client System.Net.Http.HttpClient

FetchAsync(RemoteCatalogRequest, CancellationToken)

Section titled “FetchAsync(RemoteCatalogRequest, CancellationToken)”
public override Task<RemoteCatalogPage> FetchAsync(RemoteCatalogRequest request, CancellationToken ct)

Fetches a query-filtered catalog page or an unfiltered snapshot page, checking snapshot totals for consistency.

Parameters

Name Type
request AssetInventory.RemoteCatalogRequest
ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{AssetInventory.RemoteCatalogPage}

GetVariantsAsync(string, RemoteCatalogRequest, CancellationToken)

Section titled “GetVariantsAsync(string, RemoteCatalogRequest, CancellationToken)”
public override Task<IReadOnlyList<RemoteDownloadVariant>> GetVariantsAsync(string itemId, RemoteCatalogRequest request, CancellationToken ct)

Resolves available downloads from the asset manifest and rejects a release version that differs from the indexed item.

Parameters

Name Type
itemId System.String
request AssetInventory.RemoteCatalogRequest
ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.Collections.Generic.IReadOnlyList{AssetInventory.RemoteDownloadVariant}}

public override string Id { get; }

Returns

System.String