Skip to content

NasaCatalogProvider

ClassAssetInventoryAssetInventory.Editor
public sealed class NasaCatalogProvider : RemoteRepositoryCatalogProvider, IRemoteCatalogProvider, IRemoteCatalogAccessProbe

Provides model and image catalog entries from NASA's published resource repository with source usage information.

public NasaCatalogProvider(HttpClient client = null)

Creates a NASA resource provider with an optional HTTP client for revision-pinned repository 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 cancellationToken)

Returns a filtered page of NASA models and grouped image formats from a complete repository snapshot.

Parameters

Name Type
request AssetInventory.RemoteCatalogRequest
cancellationToken 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 cancellationToken)

Resolves model or image-format downloads at the requested revision, including related model files and the NASA usage README when available.

Parameters

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

Returns

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

public override string Id { get; }

Returns

System.String