AmbientCgCatalogProvider
public sealed class AmbientCgCatalogProvider : RemoteCatalogProviderBase, IRemoteCatalogProvider, IRemoteCatalogAccessProbeProvides ambientCG catalog metadata and downloadable asset variants with release-version checks.
Constructors
Section titled “Constructors”
AmbientCgCatalogProvider(HttpClient)
Section titled “AmbientCgCatalogProvider(HttpClient)”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 |
Methods
Section titled “Methods”
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}}
Properties
Section titled “Properties”
public override string Id { get; }Returns
System.String