Interface IDistributorsContext
Provides facilities for querying specific Distributor Service instances.
Namespace: Sp.Agent.Distributor
Assembly: Sp.Agent.Distributor.dll
Methods
CanConnect(Uri)
Checks whether it is possible to communicate a Distributor Service instance at baseUri
.
Declaration
bool CanConnect(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Address of the Distributor Service. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsServiceHealthy(Uri)
Checks whether a given Distributor Service at baseUri
is in a consistent state.
A false
result indicates that the Distributor Service is reporting an integrity violation, which signifies that the licenses and/or usage information on the specified Distributor Service instance have become inconsistent.
Declaration
bool IsServiceHealthy(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Address of the Distributor Service. |
Returns
Type | Description |
---|---|
System.Boolean |
|
PoolFeatures(Uri)
Provides a dictionary of Feature pools generated by the Distributor Service.
Declaration
IDictionary<Tuple<string, string>, string[][]> PoolFeatures(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Address of the Distributor Service. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Tuple<System.String, System.String>, System.String[][]> | A dictionary which uses a Tuple composed of a Product Name and Product Version to retrieve an array of pools, each containing an array of valid Features. |
Remarks
This is for information only. The returned dictionary cannot be used for licensing purposes.
ServiceVersion(Uri)
Gets the version of the Distributor Service instance at baseUri
.
Declaration
string ServiceVersion(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Address of the Distributor Service. |
Returns
Type | Description |
---|---|
System.String | A human-readable service version string. |
Examples
3.2.1950
VendorName(Uri)
Gets the Vendor Name associated with the Distributor Service instance at baseUri
.
Declaration
string VendorName(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Address of the Distributor Service. |
Returns
Type | Description |
---|---|
System.String | The internal identifying string associated with the Software Potential Vendor for whom tthe Distributor Server was generated. |
Examples
My Sample Vendor - sample@vendor.com