NasaCatalogProvider
public sealed class NasaCatalogProvider : RemoteRepositoryCatalogProvider, IRemoteCatalogProvider, IRemoteCatalogAccessProbeProvides model and image catalog entries from NASA's published resource repository with source usage information.
Constructors
Section titled “Constructors”
NasaCatalogProvider(HttpClient)
Section titled “NasaCatalogProvider(HttpClient)”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 |
Methods
Section titled “Methods”
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}}
Properties
Section titled “Properties”
public override string Id { get; }Returns
System.String