PolyHavenCatalogProvider
public sealed class PolyHavenCatalogProvider : RemoteCatalogProviderBase, IRemoteCatalogProvider, IRemoteCatalogAccessProbeProvides Poly Haven catalog entries and resolution or format variants for models, HDRIs and materials.
Constructors
Section titled “Constructors”
PolyHavenCatalogProvider(HttpClient)
Section titled “PolyHavenCatalogProvider(HttpClient)”public PolyHavenCatalogProvider(HttpClient client = null)Creates a Poly Haven provider with an optional HTTP client for catalog, asset-detail and file-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)Pages a hash-revisioned asset catalog, applying local text filtering for searches while leaving snapshot reads unfiltered.
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 model, HDRI and material downloads and rejects an indexed file revision that changed before or during resolution.
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