Skip to content

RemoteCatalogRegistry

ClassAssetInventoryAssetInventory.Editor
public static class RemoteCatalogRegistry

Registers remote-source definitions and adapter factories, including definitions for sources accessed through their websites.

public static RemoteCatalogDefinition Get(string id)

Returns the definition for an exact source identifier, or null when the identifier is unknown.

Parameters

Name Type
id System.String

Returns

AssetInventory.RemoteCatalogDefinition

public static bool HasProvider(string id)

Indicates whether an adapter factory is registered for the exact source identifier.

Parameters

Name Type
id System.String

Returns

System.Boolean

public static IRemoteCatalogProvider CreateProvider(string id, HttpClient client = null)

Creates a registered source adapter using an optional caller-owned HTTP client; unsupported source identifiers throw.

Parameters

Name Type
id System.String
client System.Net.Http.HttpClient

Returns

AssetInventory.IRemoteCatalogProvider

public static IReadOnlyList<RemoteCatalogDefinition> All { get; }

Returns

System.Collections.Generic.IReadOnlyList{AssetInventory.RemoteCatalogDefinition}