RemoteCatalogRegistry
public static class RemoteCatalogRegistryRegisters remote-source definitions and adapter factories, including definitions for sources accessed through their websites.
Methods
Section titled “Methods”
Get(string)
Section titled “Get(string)”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
HasProvider(string)
Section titled “HasProvider(string)”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
CreateProvider(string, HttpClient)
Section titled “CreateProvider(string, HttpClient)”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
Properties
Section titled “Properties”
public static IReadOnlyList<RemoteCatalogDefinition> All { get; }Returns
System.Collections.Generic.IReadOnlyList{AssetInventory.RemoteCatalogDefinition}