Interface ISnapshotHolder<TMessage>
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Interface, described snapshots holder.
public interface ISnapshotHolder<TMessage> where TMessage : Message
Type Parameters
TMessageMessage type.
- Extension Methods
Methods
Process(TMessage)
Process
TMessage Process(TMessage change)
Parameters
changeTMessagechange.
Returns
- TMessage
change (diff or snapshot clone on first call).
ResetSnapshot(SecurityId)
Reset snapshot for the specified security.
void ResetSnapshot(SecurityId securityId)
Parameters
securityIdSecurityIdSecurity ID.
TryGetSnapshot(SecurityId, out TMessage)
Try get snapshot for the specified security.
bool TryGetSnapshot(SecurityId securityId, out TMessage snapshot)
Parameters
securityIdSecurityIdSecurity ID.
snapshotTMessageSnapshot if exists, otherwise null.
Returns
- bool
trueif snapshot exists; otherwisefalse.