Class StorageMetaInfoMessageAdapter
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
Meta-info storage based message adapter.
public class StorageMetaInfoMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
StorageMetaInfoMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
StorageMetaInfoMessageAdapter(IMessageAdapter, ISecurityStorage, IPositionStorage, IExchangeInfoProvider, StorageProcessor)
Initializes a new instance of the StorageMetaInfoMessageAdapter.
public StorageMetaInfoMessageAdapter(IMessageAdapter innerAdapter, ISecurityStorage securityStorage, IPositionStorage positionStorage, IExchangeInfoProvider exchangeInfoProvider, StorageProcessor storageProcessor)
Parameters
innerAdapter
IMessageAdapterThe adapter, to which messages will be directed.
securityStorage
ISecurityStorageSecurities meta info storage.
positionStorage
IPositionStoragePosition storage.
exchangeInfoProvider
IExchangeInfoProviderExchanges and trading boards provider.
storageProcessor
StorageProcessorStorage processor.
Properties
OverrideSecurityData
Override previous security data by new values.
public bool OverrideSecurityData { get; set; }
Property Value
Methods
Clone()
Create a copy of StorageMetaInfoMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
Load()
Load save data from storage.
[Obsolete("Use lookup messages.")]
public void Load()
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnInnerAdapterNewOutMessage(Message)
Process InnerAdapter output message.
protected override void OnInnerAdapterNewOutMessage(Message message)
Parameters
message
MessageThe message.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SaveDirect(PositionChangeMessage)
public void SaveDirect(PositionChangeMessage message)
Parameters
message
PositionChangeMessage