Table of Contents

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 IMessageAdapter

The adapter, to which messages will be directed.

securityStorage ISecurityStorage

Securities meta info storage.

positionStorage IPositionStorage

Position storage.

exchangeInfoProvider IExchangeInfoProvider

Exchanges and trading boards provider.

storageProcessor StorageProcessor

Storage processor.

Properties

OverrideSecurityData

Override previous security data by new values.

public bool OverrideSecurityData { get; set; }

Property Value

bool

Methods

Clone()

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 SettingsStorage

Settings storage.

OnInnerAdapterNewOutMessage(Message)

Process InnerAdapter output message.

protected override void OnInnerAdapterNewOutMessage(Message message)

Parameters

message Message

The message.

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.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SaveDirect(PositionChangeMessage)

public void SaveDirect(PositionChangeMessage message)

Parameters

message PositionChangeMessage