Table of Contents

Class SubscriptionMessageAdapter

Namespace
StockSharp.Algo
Assembly
StockSharp.Algo.dll

Subscription counter adapter.

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

Constructors

SubscriptionMessageAdapter(IMessageAdapter)

Initializes a new instance of the SubscriptionMessageAdapter.

public SubscriptionMessageAdapter(IMessageAdapter innerAdapter)

Parameters

innerAdapter IMessageAdapter

Inner message adapter.

Properties

IsRestoreSubscriptionOnErrorReconnect

Restore subscription on reconnect.

public bool IsRestoreSubscriptionOnErrorReconnect { get; set; }

Property Value

bool

Remarks

Error case like connection lost etc.

Methods

Clone()

Create a copy of SubscriptionMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

InnerAdapterNewOutMessage(Message)

Process InnerAdapter output message.

protected override void InnerAdapterNewOutMessage(Message message)

Parameters

message Message

The message.

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.