Table of Contents

Class OfflineMessageAdapter

Namespace
StockSharp.Algo
Assembly
StockSharp.Algo.dll

The messages adapter keeping message until connection will be done.

public class OfflineMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
OfflineMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Derived
Inherited Members
Extension Methods

Constructors

OfflineMessageAdapter(IMessageAdapter)

Initializes a new instance of the OfflineMessageAdapter.

public OfflineMessageAdapter(IMessageAdapter innerAdapter)

Parameters

innerAdapter IMessageAdapter

Underlying adapter.

Properties

MaxMessageCount

Max message queue count. The default value is 10000.

public int MaxMessageCount { get; set; }

Property Value

int

Remarks

Value set to -1 corresponds to the size without limitations.

SendInBackFurther

Auto send BackMode messages to InnerAdapter.

protected override bool SendInBackFurther { get; }

Property Value

bool

Methods

Clone()

Create a copy of OfflineMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

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.