Class LockTransaction
Represents a transaction that gets atomically applied to the remote locking server
Inheritance
System.Object
LockTransaction
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.Sky.dll
Syntax
[Serializable]
public sealed class LockTransaction : IEnumerable<LockOp.StatementOp>, IEnumerable
Constructors
LockTransaction(String, String, UInt32, Double, LockOp.StatementOp[])
Creates a new transaction object for execution on a remote lock server
Declaration
public LockTransaction(string description, string namespaceName, uint minRuntimeSec, double minTrustLevel, params LockOp.StatementOp[] statements)
Parameters
Type |
Name |
Description |
System.String |
description |
|
System.String |
namespaceName |
|
System.UInt32 |
minRuntimeSec |
|
System.Double |
minTrustLevel |
|
LockOp.StatementOp[] |
statements |
|
LockTransaction(UInt32, Double)
Creates PING transaction - a transaction that just touches the session and does nothing else
Declaration
public LockTransaction(uint minRuntimeSec, double minTrustLevel)
Parameters
Type |
Name |
Description |
System.UInt32 |
minRuntimeSec |
|
System.Double |
minTrustLevel |
|
Fields
Description
Provides Textual description for transaction
Declaration
public readonly string Description
Field Value
Type |
Description |
System.String |
|
ID
Unique ID assigned to this transaction at create time
Declaration
Field Value
Type |
Description |
System.Guid |
|
MinimumRequiredRuntimeSec
Specifies te minimum time that the server had to run for for transaction to succeed
Declaration
public readonly uint MinimumRequiredRuntimeSec
Field Value
Type |
Description |
System.UInt32 |
|
MinimumRequiredTrustLevel
Specifies 0..1 minimum trust that the server has to have for transaction to succeed.
If the server's level of trust is below this number, then transaction fails
Declaration
public readonly double MinimumRequiredTrustLevel
Field Value
Type |
Description |
System.Double |
|
Namespace
Name of data/memory partition in lock server where all transactions get serialized, hence
where all changes are guaranteed to be atomic and coherent
Declaration
public readonly string Namespace
Field Value
Type |
Description |
System.String |
|
PingAnyReliability
Represents transaction that pings any server regardless of reliability guarantees
Declaration
public static readonly LockTransaction PingAnyReliability
Field Value
Statements
The list of statemnts that get executed in order
Declaration
public readonly LockOp.StatementOp[] Statements
Field Value
Methods
GetEnumerator()
Declaration
public IEnumerator<LockOp.StatementOp> GetEnumerator()
Returns
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods