TinyMessageBase
StockSharp.Xaml.Charting.Common.Messaging
Base class for messages that provides weak refrence storage of the sender
Implements: ITinyMessage
Constructors
TinyMessageBase
public TinyMessageBase(object sender)
tinyMessageBase = TinyMessageBase(sender)
Initializes a new instance of the MessageBase class.
- sender
- Message sender (usually "this")
Properties
Sender
public object Sender { get; }
value = tinyMessageBase.Sender
The sender of the message, or null if not supported by the message implementation.
Fields
_Sender
private WeakReference _Sender
value = tinyMessageBase._Sender
Store a WeakReference to the sender just in case anyone is daft enough to keep the message around and prevent the sender from being collected.