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
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the StorageMessageAdapter.
Constructors
StorageMessageAdapter(IMessageAdapter, StorageProcessor)
Storage based message adapter.
public StorageMessageAdapter(IMessageAdapter innerAdapter, StorageProcessor storageProcessor)
Parameters
innerAdapter
IMessageAdapterThe adapter, to which messages will be directed.
storageProcessor
StorageProcessorStorage processor.
Remarks
Initializes a new instance of the StorageMessageAdapter.
Methods
Clone()
Create a copy of StorageMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
GetSupportedMarketDataTypes(SecurityId, DateTimeOffset?, DateTimeOffset?)
Get supported by adapter message types.
public override IEnumerable<DataType> GetSupportedMarketDataTypes(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
securityId
SecurityIdfrom
DateTimeOffset?Start date for request. If null, then all available messages will be returned.
to
DateTimeOffset?End date for request. If null, then all available messages will be returned.
Returns
- IEnumerable<DataType>
Supported by adapter market data types.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.