Class BufferMessageAdapter
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
Buffered message adapter.
public class BufferMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
BufferMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
BufferMessageAdapter(IMessageAdapter, StorageCoreSettings, StorageBuffer, SnapshotRegistry)
Initializes a new instance of the BufferMessageAdapter.
public BufferMessageAdapter(IMessageAdapter innerAdapter, StorageCoreSettings settings, StorageBuffer buffer, SnapshotRegistry snapshotRegistry)
Parameters
innerAdapter
IMessageAdapterUnderlying adapter.
settings
StorageCoreSettingsStorage settings.
buffer
StorageBufferStorage buffer.
snapshotRegistry
SnapshotRegistrySnapshot storage registry.
Properties
Buffer
Storage buffer.
public StorageBuffer Buffer { get; }
Property Value
Settings
Storage settings.
public StorageCoreSettings Settings { get; }
Property Value
SnapshotRegistry
Snapshot storage registry.
public SnapshotRegistry SnapshotRegistry { get; }
Property Value
Methods
Clone()
Create a copy of BufferMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
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.