Class EvalContext
Holds context information during execution of LockTransaction graph
Inheritance
System.Object
EvalContext
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()
Namespace: Azos.Sky.Locking.Server
Assembly: Azos.Sky.dll
Syntax
public sealed class EvalContext
Fields
Transaction
Returns the transaction being evaluated
Declaration
public readonly LockTransaction Transaction
Field Value
Type | Description |
---|---|
LockTransaction |
Properties
Aborted
Returns true when graph evaluation was aborted. This flag is checked by all operations instead of throwing exception which is much slower
Declaration
public bool Aborted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Data
Declaration
public KeyValuePair<string, object>[] Data { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<System.String, System.Object>[] |
FailedStatement
If aborted, returns the description of failed statement
Declaration
public string FailedStatement { get; }
Property Value
Type | Description |
---|---|
System.String |
SessionDescription
Description of the session that this request is under
Declaration
public string SessionDescription { get; }
Property Value
Type | Description |
---|---|
System.String |
SessionID
ID of a session that this request is under
Declaration
public LockSessionID SessionID { get; }
Property Value
Type | Description |
---|---|
LockSessionID |
Methods
Abort(String)
Aborts the evaluation of lock tran graph. Conceptually similar to throw, however is 8-10x faster
Declaration
public void Abort(string failedStatement)
Parameters
Type | Name | Description |
---|---|---|
System.String | failedStatement |
AddData(String, Object)
Adds named key with value to result list
Declaration
public void AddData(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | value |
ResetAbort()
Resets abort condition
Declaration
public void ResetAbort()