OrderSnapshotHolder

StockSharp.Messages

ExecutionMessage order snapshots holder.

Inherits: BaseLogReceiver

Constructors

OrderSnapshotHolder
public OrderSnapshotHolder()
orderSnapshotHolder = OrderSnapshotHolder()

Initializes a new instance of the OrderSnapshotHolder.

Properties

ThrowOnInvalidStateTransition
public bool ThrowOnInvalidStateTransition { get; set; }
value = orderSnapshotHolder.ThrowOnInvalidStateTransition
orderSnapshotHolder.ThrowOnInvalidStateTransition = value

Throw exception on invalid order state transition.

Methods

Process
public ExecutionMessage Process(ExecutionMessage execMsg)
result = orderSnapshotHolder.Process(execMsg)

Process ExecutionMessage change.

execMsg
ExecutionMessage change.

Returns: Order snapshot copy. Returns if HasOrderInfo is .

ResetSnapshot
public void ResetSnapshot(long transactionId)
orderSnapshotHolder.ResetSnapshot(transactionId)

Reset snapshot for the specified transaction id.

transactionId
Transaction ID. Use 0 to clear all snapshots.
TryGetSnapshot
public bool TryGetSnapshot(long transactionId, ExecutionMessage snapshot)
result = orderSnapshotHolder.TryGetSnapshot(transactionId, snapshot)

Try get snapshot for the specified transaction id.

transactionId
Transaction ID.
snapshot
Snapshot copy if exists, otherwise .

Returns: true if snapshot exists; otherwise false.