Class RiskMessageAdapter
- Namespace
- StockSharp.Algo.Risk
- Assembly
- StockSharp.Algo.dll
The message adapter, automatically controlling risk rules.
public class RiskMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
RiskMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
RiskMessageAdapter(IMessageAdapter)
Initializes a new instance of the RiskMessageAdapter.
public RiskMessageAdapter(IMessageAdapter innerAdapter)
Parameters
innerAdapter
IMessageAdapterThe adapter, to which messages will be directed.
Properties
RiskManager
Risk control manager.
public IRiskManager RiskManager { get; set; }
Property Value
Methods
Clone()
Create a copy of RiskMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
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
SendInMessage(Message)
Send message.
public override bool SendInMessage(Message message)
Parameters
message
MessageMessage.