Table of Contents

Interface ISnapshotHolder<TMessage>

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Interface, described snapshots holder.

public interface ISnapshotHolder<TMessage> where TMessage : Message

Type Parameters

TMessage

Message type.

Extension Methods

Methods

Process(TMessage)

Process change.

TMessage Process(TMessage change)

Parameters

change TMessage

change.

Returns

TMessage

change (diff or snapshot clone on first call).

ResetSnapshot(SecurityId)

Reset snapshot for the specified security.

void ResetSnapshot(SecurityId securityId)

Parameters

securityId SecurityId

Security ID.

TryGetSnapshot(SecurityId, out TMessage)

Try get snapshot for the specified security.

bool TryGetSnapshot(SecurityId securityId, out TMessage snapshot)

Parameters

securityId SecurityId

Security ID.

snapshot TMessage

Snapshot if exists, otherwise null.

Returns

bool

true if snapshot exists; otherwise false.