AP&C API Reference
|
The contract used by client applications to procure a key to unlock a licensed feature. More...
Public Member Functions | |
AcquisitionResponse | AcquireLicenseLock (AcquisitionRequest request) |
The method used to aquire a key to unlock a licensed feature. More... | |
ReleaseResponse | ReleaseLicenseLock (string acquisitionId) |
The method used to release a key previously used to unlock a licensed feature using a count of one (1). More... | |
ReleaseResponse | ReleaseLicenseLock (string contextId, string[] nodeIds, LicensedFeatures feature, int numToRelease) |
The method used to release a key previously used to unlock a licensed feature. More... | |
ReleaseResponse | ReleaseLicenseLock (string contextId, string[] nodeIds, LicensedFeatures feature, int numToRelease, int nulLeasesHeld) |
The method used to release a key previously used to unlock a licensed feature. More... | |
bool | RenewLicenseLocks (string acquisitionId) |
The method used to renew feature locks checked out before they expire. More... | |
bool | RenewLicenseLock (string featureResponseId) |
The method used to renew a feature lock checked out before it expires. More... | |
Key | Find (KeySearchHandler match) |
A search routine for finding a specific key. More... | |
Key[] | FindAll (KeySearchHandler match) |
A search routine for finding specific keys. More... | |
void | ReloadKeys () |
Management method for forcing a reload of license keys from disk. More... | |
void | Close () |
Signals the key manager to stop taking requests and persist its state. More... | |
int | GetNumLeases (string contextId, string[] nodeIds, LicensedFeatures feature) |
Gets the number of leases available to the caller given the context and node and feature. More... | |
AuditResult | SyncNonVolatileCount (string contextId, string[] nodeIds, LicensedFeatures feature, int numLeasesHeld) |
Allows a client application to report its nonvolatile lease counts for a given feature and have the license manager sync up with it. More... | |
Properties | |
LockRecord[] | Locks [get] |
Property used for displaying the current lease records. More... | |
Key[] | Keys [get] |
Property used for displaying the currently loaded license keys, which determine which features are available in which contexts. More... | |
The contract used by client applications to procure a key to unlock a licensed feature.
AcquisitionResponse Apac.Licensing.IKeyManager.AcquireLicenseLock | ( | AcquisitionRequest | request | ) |
The method used to aquire a key to unlock a licensed feature.
request | The object containing the elements describing the request. |
Implemented in Apac.Licensing.KeyManager.
void Apac.Licensing.IKeyManager.Close | ( | ) |
Signals the key manager to stop taking requests and persist its state.
Implemented in Apac.Licensing.KeyManager.
Key Apac.Licensing.IKeyManager.Find | ( | KeySearchHandler | match | ) |
A search routine for finding a specific key.
match | The delegate used to perform the matching. |
Implemented in Apac.Licensing.KeyManager.
Key [] Apac.Licensing.IKeyManager.FindAll | ( | KeySearchHandler | match | ) |
A search routine for finding specific keys.
match | The delegate used to perform the matching. |
Implemented in Apac.Licensing.KeyManager.
int Apac.Licensing.IKeyManager.GetNumLeases | ( | string | contextId, |
string[] | nodeIds, | ||
LicensedFeatures | feature | ||
) |
Gets the number of leases available to the caller given the context and node and feature.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
Implemented in Apac.Licensing.KeyManager.
ReleaseResponse Apac.Licensing.IKeyManager.ReleaseLicenseLock | ( | string | acquisitionId | ) |
The method used to release a key previously used to unlock a licensed feature using a count of one (1).
acquisitionId | The id of the acquisition response received when the locks were obtained. |
Implemented in Apac.Licensing.KeyManager.
ReleaseResponse Apac.Licensing.IKeyManager.ReleaseLicenseLock | ( | string | contextId, |
string[] | nodeIds, | ||
LicensedFeatures | feature, | ||
int | numToRelease | ||
) |
The method used to release a key previously used to unlock a licensed feature.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
numToRelease | The number of locks to release. |
Implemented in Apac.Licensing.KeyManager.
ReleaseResponse Apac.Licensing.IKeyManager.ReleaseLicenseLock | ( | string | contextId, |
string[] | nodeIds, | ||
LicensedFeatures | feature, | ||
int | numToRelease, | ||
int | nulLeasesHeld | ||
) |
The method used to release a key previously used to unlock a licensed feature.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
numToRelease | The number of locks to release. |
nulLeasesHeld | The number of (non-volatile) locks held by the client. This is ignored for volatile locks. |
Implemented in Apac.Licensing.KeyManager.
void Apac.Licensing.IKeyManager.ReloadKeys | ( | ) |
Management method for forcing a reload of license keys from disk.
Implemented in Apac.Licensing.KeyManager.
bool Apac.Licensing.IKeyManager.RenewLicenseLock | ( | string | featureResponseId | ) |
The method used to renew a feature lock checked out before it expires.
acquisitionId | The id of the acquisition response received when the locks were obtained. |
true
if successful, false
if the renewal failed. In the negative case, the application should attempt to re-acquire the locks.Implemented in Apac.Licensing.KeyManager.
bool Apac.Licensing.IKeyManager.RenewLicenseLocks | ( | string | acquisitionId | ) |
The method used to renew feature locks checked out before they expire.
acquisitionId | The id of the acquisition response received when the locks were obtained. |
true
if successful, false
if the renewal failed. In the negative case, the application should attempt to re-acquire the locks.Implemented in Apac.Licensing.KeyManager.
AuditResult Apac.Licensing.IKeyManager.SyncNonVolatileCount | ( | string | contextId, |
string[] | nodeIds, | ||
LicensedFeatures | feature, | ||
int | numLeasesHeld | ||
) |
Allows a client application to report its nonvolatile lease counts for a given feature and have the license manager sync up with it.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
numLeasesHeld | The number of leases held by the client. |
Implemented in Apac.Licensing.KeyManager.
|
get |
Property used for displaying the currently loaded license keys, which determine which features are available in which contexts.
|
get |
Property used for displaying the current lease records.