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
IMessageAdapterThe adapter, to which messages will be directed.
storageProcessor
StorageProcessorStorage 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
TypeThe type of the message CandleMessage.
securityId
SecurityIdSecurity 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
MessageMessage.