Class Level1SnapshotHolder
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Level1ChangeMessage snapshots holder.
public class Level1SnapshotHolder : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable, ISnapshotHolder<Level1ChangeMessage>
- Inheritance
-
Level1SnapshotHolder
- Implements
- Inherited Members
- Extension Methods
Constructors
Level1SnapshotHolder()
Initializes a new instance of the Level1SnapshotHolder.
public Level1SnapshotHolder()
Methods
Process(Level1ChangeMessage)
Process
public Level1ChangeMessage Process(Level1ChangeMessage level1Msg)
Parameters
level1MsgLevel1ChangeMessage
Returns
- Level1ChangeMessage
change (diff or snapshot clone on first call).
ResetSnapshot(SecurityId)
Reset snapshot for the specified security.
public void ResetSnapshot(SecurityId securityId)
Parameters
securityIdSecurityIdSecurity ID.
TryGetSnapshot(SecurityId, out Level1ChangeMessage)
Try get snapshot for the specified security.
public bool TryGetSnapshot(SecurityId securityId, out Level1ChangeMessage snapshot)
Parameters
securityIdSecurityIdSecurity ID.
snapshotLevel1ChangeMessageSnapshot if exists, otherwise null.
Returns
- bool
trueif snapshot exists; otherwisefalse.