ChannelMessageAdapter

StockSharp.Messages

Message adapter, forward messages through a transport channel IMessageChannel.

Inherits: MessageAdapterWrapper

Constructors

ChannelMessageAdapter(IMessageAdapter, IMessageChannel, IMessageChannel)

Initializes a new instance of the ChannelMessageAdapter.

innerAdapter
Underlying adapter.
inputChannel
Incoming messages channel.
outputChannel
Outgoing message channel.

Properties

OwnInputChannel : bool

Control the lifetime of the incoming messages channel.

OwnOutputChannel : bool

Control the lifetime of the outgoing messages channel.

Methods

Clone() : IMessageAdapter

Create a copy of ChannelMessageAdapter.

Returns: Copy.

Dispose()

Disposes of items in the pool that implement IDisposable.

OnInnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask

Process InnerAdapter output message.

message
The message.
cancellationToken
Cancellation token.