Table of Contents

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 IMessageAdapter

Underlying adapter.

inputChannel IMessageChannel

Incoming messages channel.

outputChannel IMessageChannel

Outgoing message channel.

Properties

InputChannel

Adapter.

public IMessageChannel InputChannel { get; }

Property Value

IMessageChannel

OutputChannel

Adapter.

public IMessageChannel OutputChannel { get; }

Property Value

IMessageChannel

OwnInputChannel

Control the lifetime of the incoming messages channel.

public bool OwnInputChannel { get; set; }

Property Value

bool

OwnOutputChannel

Control the lifetime of the outgoing messages channel.

public bool OwnOutputChannel { get; set; }

Property Value

bool

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 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.

SendOutMessage(Message)

Send outgoing message.

public void SendOutMessage(Message message)

Parameters

message Message

Message.