ChannelMessageAdapter

StockSharp.Messages

Message adapter, forward messages through a transport channel IMessageChannel.

Erbt von: MessageAdapterWrapper

Konstruktoren

ChannelMessageAdapter(IMessageAdapter, IMessageChannel, IMessageChannel)

Initializes a new instance of the ChannelMessageAdapter.

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

Eigenschaften

OwnInputChannel : bool

Control the lifetime of the incoming messages channel.

OwnOutputChannel : bool

Control the lifetime of the outgoing messages channel.

Methoden

Clone() : IMessageAdapter

Create a copy of ChannelMessageAdapter.

Rückgabe: 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.