The data type used to track successful leases.
More...
|
| LockRecord (AcquisitionResponse response, FeatureResponse featureResponse, int timeout) |
| Initializes a new instance of the LeaseRecord class. More...
|
|
void | Increment (int count) |
| Increments the lease count for the feature in this record. More...
|
|
void | Decrement (int count) |
| Decrements the lease count for the feature in this record. More...
|
|
void | Renew (int timeout) |
|
bool | ContainsNodeId (string[] nodeIds) |
| Determines if the node ids in the lock record contain one of the given node ids. More...
|
|
System.Xml.Schema.XmlSchema | GetSchema () |
|
void | ReadXml (System.Xml.XmlReader reader) |
|
void | WriteXml (System.Xml.XmlWriter writer) |
|
|
| LockRecord () |
| For serialization. More...
|
|
virtual void | OnLockTimedOut () |
|
virtual void | OnLockRenewed () |
|
|
LockTimedOutHandler | LockTimedOut |
|
LockRenewedHandler | LockRenewed |
|
The data type used to track successful leases.
◆ LockRecord() [1/2]
Apac.Licensing.LockRecord.LockRecord |
( |
| ) |
|
|
inlineprotected |
◆ LockRecord() [2/2]
Initializes a new instance of the LeaseRecord class.
- Parameters
-
response | The response. |
feature | The feature. |
timeout | The duration of the lock in minutes. |
◆ ContainsNodeId()
bool Apac.Licensing.LockRecord.ContainsNodeId |
( |
string[] |
nodeIds | ) |
|
|
inline |
Determines if the node ids in the lock record contain one of the given node ids.
- Parameters
-
nodeId | The node ids to match. |
- Returns
- Returns
true
if a match is found, otherwise false
.
◆ Decrement()
void Apac.Licensing.LockRecord.Decrement |
( |
int |
count | ) |
|
|
inline |
Decrements the lease count for the feature in this record.
- Parameters
-
◆ DefineKey()
static string Apac.Licensing.LockRecord.DefineKey |
( |
string |
contextId, |
|
|
string[] |
nodeIds, |
|
|
LicensedFeatures |
feature |
|
) |
| |
|
inlinestatic |
Builds the key used to store the LockRecord in the dictionary.
- Parameters
-
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
- Returns
◆ Increment()
void Apac.Licensing.LockRecord.Increment |
( |
int |
count | ) |
|
|
inline |
Increments the lease count for the feature in this record.
- Parameters
-
◆ AcquisitionId
string Apac.Licensing.LockRecord.AcquisitionId |
|
getprotected set |
Gets the id of the acquisition request.
The id.
◆ ContextId
string Apac.Licensing.LockRecord.ContextId |
|
getprotected set |
Gets the context id.
The context id.
◆ Count
int Apac.Licensing.LockRecord.Count |
|
getprotected set |
Gets the count.
The count.
◆ Duration
int Apac.Licensing.LockRecord.Duration |
|
get |
Gets the duration.
The duration.
◆ Feature
Gets the feature.
The feature.
◆ FeatureResponseId
string Apac.Licensing.LockRecord.FeatureResponseId |
|
getprotected set |
Gets the feature response id.
The node id.
◆ FeatureType
Gets the type of the feature.
The type of the feature.
◆ IsExpired
bool Apac.Licensing.LockRecord.IsExpired |
|
get |
Gets a value indicating whether this instance is expired.
true
if this instance is expired; otherwise, false
.
◆ Key
string Apac.Licensing.LockRecord.Key |
|
getprotected set |
◆ NodeIds
string [] Apac.Licensing.LockRecord.NodeIds |
|
getprotected set |
Gets the node ids.
The node ids.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/ApacLicensing/Apac.Licensing/LockRecord.cs