Provides a set of keys with a searching facility to ease application code that needs to look up license keys.
More...
|
bool | IsFeatureLicensed (LicensedFeatures feature) |
| Indicates whether the requested feature is licensed or not. More...
|
|
void | Add (Key key) |
| Indicates whether the requested feature is licensed or not given the context and the current count the requester provides. This call is used to support distributed checkouts against centralized and generalized floating licenses (ie: IDA Client leases for many different banks licensed in one place). More...
|
|
int | GetNumLeases (LicensedFeatures name) |
| Indicates how many leases are available for the feature. More...
|
|
KeySet | GetMatchingKeys (string contextid, string[] nodeids) |
| Gets all matching license keys from the set of keys. More...
|
|
Key | Find (KeySearchHandler match) |
| Search routine for finding a specific key. More...
|
|
Key[] | FindAll (KeySearchHandler match) |
| Search routine for finding a specific keys. More...
|
|
Key | Find (FeatureSearchHandler match) |
|
Key[] | FindAll (FeatureSearchHandler match) |
|
void | Visit (KeyVisitorHandler visitor) |
|
void | Lock () |
| Locks the KeySet. More...
|
|
void | Clear () |
| Clears the KeySet, if it has not been locked. More...
|
|
Key[] | ToArray () |
|
IEnumerator< Key > | GetEnumerator () |
|
|
int | Count [get] |
|
bool | Locked [get] |
| Gets the property indicating if the KeySet has been locked. More...
|
|
Provides a set of keys with a searching facility to ease application code that needs to look up license keys.
◆ Add()
void Apac.Licensing.KeySet.Add |
( |
Key |
key | ) |
|
|
inline |
Indicates whether the requested feature is licensed or not given the context and the current count the requester provides. This call is used to support distributed checkouts against centralized and generalized floating licenses (ie: IDA Client leases for many different banks licensed in one place).
- Parameters
-
context | The context for which the license is needed. |
feature | The feature for which the license is needed. |
currentCount | The count of features currently in use in the context. |
- Returns
- Returns
true
if the feature can be used, false
if it cannot.
Convenience method for adding a key to the dictionary without having to
- Parameters
-
◆ Clear()
void Apac.Licensing.KeySet.Clear |
( |
| ) |
|
|
inline |
Clears the KeySet, if it has not been locked.
◆ Find()
Key Apac.Licensing.KeySet.Find |
( |
KeySearchHandler |
match | ) |
|
|
inline |
Search routine for finding a specific key.
- Parameters
-
match | The delegate used to determine the match. |
- Returns
- Returns the first matching key or
null
.
◆ FindAll()
Key [] Apac.Licensing.KeySet.FindAll |
( |
KeySearchHandler |
match | ) |
|
|
inline |
Search routine for finding a specific keys.
- Parameters
-
match | The delegate used to determine the match. |
- Returns
- Returns an array of all matching keys.
◆ GetMatchingKeys()
KeySet Apac.Licensing.KeySet.GetMatchingKeys |
( |
string |
contextid, |
|
|
string[] |
nodeids |
|
) |
| |
|
inline |
Gets all matching license keys from the set of keys.
- Parameters
-
contextid | The context identifier for the required keys. |
nodeids | The array of node identifiers for the required keys. |
- Returns
- Returns an array of Keys that match contextid and at least one of nodeids , or an empty array if no matches were found.
◆ GetNumLeases()
Indicates how many leases are available for the feature.
- Parameters
-
- Returns
- Returns the number of leases that the feature's license key supports.
◆ IsFeatureLicensed()
Indicates whether the requested feature is licensed or not.
- Parameters
-
- Returns
- Returns
true
if the feature can be used, false
if the feature cannot be used.
◆ Lock()
void Apac.Licensing.KeySet.Lock |
( |
| ) |
|
|
inline |
◆ Locked
bool Apac.Licensing.KeySet.Locked |
|
get |
Gets the property indicating if the KeySet has been locked.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/ApacLicensing/Apac.Licensing/KeySet.cs