Class OrderSnapshotHolder
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
ExecutionMessage order snapshots holder.
public class OrderSnapshotHolder : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
OrderSnapshotHolder
- Implements
- Inherited Members
- Extension Methods
Constructors
OrderSnapshotHolder()
Initializes a new instance of the OrderSnapshotHolder.
public OrderSnapshotHolder()
Properties
ThrowOnInvalidStateTransition
Throw exception on invalid order state transition.
public bool ThrowOnInvalidStateTransition { get; set; }
Property Value
Methods
Process(ExecutionMessage)
Process ExecutionMessage change.
public ExecutionMessage Process(ExecutionMessage execMsg)
Parameters
execMsgExecutionMessageExecutionMessage change.
Returns
- ExecutionMessage
Order snapshot copy. Returns null if HasOrderInfo is false.
ResetSnapshot(long)
Reset snapshot for the specified transaction id.
public void ResetSnapshot(long transactionId)
Parameters
transactionIdlongTransaction ID. Use 0 to clear all snapshots.
TryGetSnapshot(long, out ExecutionMessage)
Try get snapshot for the specified transaction id.
public bool TryGetSnapshot(long transactionId, out ExecutionMessage snapshot)
Parameters
transactionIdlongTransaction ID.
snapshotExecutionMessageSnapshot copy if exists, otherwise null.
Returns
- bool
trueif snapshot exists; otherwisefalse.