Class ChannelMessageAdapter
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Message adapter, forward messages through a transport channel IMessageChannel.
public class ChannelMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
ChannelMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
ChannelMessageAdapter(IMessageAdapter, IMessageChannel, IMessageChannel)
Initializes a new instance of the ChannelMessageAdapter.
public ChannelMessageAdapter(IMessageAdapter innerAdapter, IMessageChannel inputChannel, IMessageChannel outputChannel)
Parameters
innerAdapter
IMessageAdapterUnderlying adapter.
inputChannel
IMessageChannelIncoming messages channel.
outputChannel
IMessageChannelOutgoing message channel.
Properties
InputChannel
Adapter.
public IMessageChannel InputChannel { get; }
Property Value
OutputChannel
Adapter.
public IMessageChannel OutputChannel { get; }
Property Value
OwnInputChannel
Control the lifetime of the incoming messages channel.
public bool OwnInputChannel { get; set; }
Property Value
OwnOutputChannel
Control the lifetime of the outgoing messages channel.
public bool OwnOutputChannel { get; set; }
Property Value
Methods
Clone()
Create a copy of ChannelMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
Dispose()
public override void Dispose()
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.
Returns
SendOutMessage(Message)
Send outgoing message.
public void SendOutMessage(Message message)
Parameters
message
MessageMessage.