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
IMessageAdapterInner message adapter.
Properties
IsRestoreSubscriptionOnErrorReconnect
Restore subscription on reconnect.
public bool IsRestoreSubscriptionOnErrorReconnect { get; set; }
Property Value
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
MessageThe message.
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.