Table of Contents

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

bool

Methods

Process(ExecutionMessage)

Process ExecutionMessage change.

public ExecutionMessage Process(ExecutionMessage execMsg)

Parameters

execMsg ExecutionMessage

ExecutionMessage 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

transactionId long

Transaction 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

transactionId long

Transaction ID.

snapshot ExecutionMessage

Snapshot copy if exists, otherwise null.

Returns

bool

true if snapshot exists; otherwise false.