Table of Contents

Class StorageMessageAdapter

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

Storage based message adapter.

public class StorageMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
StorageMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

StorageMessageAdapter(IMessageAdapter, StorageProcessor)

Initializes a new instance of the StorageMessageAdapter.

public StorageMessageAdapter(IMessageAdapter innerAdapter, StorageProcessor storageProcessor)

Parameters

innerAdapter IMessageAdapter

The adapter, to which messages will be directed.

storageProcessor StorageProcessor

Storage processor.

Methods

Clone()

Create a copy of StorageMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

GetCandleArgs(Type, SecurityId, DateTimeOffset?, DateTimeOffset?)

Get possible args for the specified candle type and instrument.

public override IEnumerable<object> GetCandleArgs(Type candleType, SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)

Parameters

candleType Type

The type of the message CandleMessage.

securityId SecurityId

Security ID.

from DateTimeOffset?

The initial date from which you need to get data.

to DateTimeOffset?

The final date by which you need to get data.

Returns

IEnumerable<object>

Possible args.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.