Table of Contents

Class LatencyMessageAdapter

Namespace
StockSharp.Algo.Latency
Assembly
StockSharp.Algo.dll

The message adapter, automatically calculating network delays.

public class LatencyMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
LatencyMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

LatencyMessageAdapter(IMessageAdapter)

Initializes a new instance of the LatencyMessageAdapter.

public LatencyMessageAdapter(IMessageAdapter innerAdapter)

Parameters

innerAdapter IMessageAdapter

The adapter, to which messages will be directed.

Properties

LatencyManager

Orders registration delay calculation manager.

public ILatencyManager LatencyManager { get; set; }

Property Value

ILatencyManager

Methods

Clone()

Create a copy of LatencyMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

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.