Lean
$LEAN_TAG$
|
Desktop implementation of messaging system for Lean Engine More...
Public Member Functions | |
void | Initialize (MessagingHandlerInitializeParameters initializeParameters) |
Initialize the Messaging System Plugin. More... | |
void | LoadingComplete () |
Set Loaded to true More... | |
void | SetAuthentication (AlgorithmNodePacket job) |
Set the user communication channel More... | |
delegate void | DebugEventRaised (DebugPacket packet) |
delegate void | SystemDebugEventRaised (SystemDebugPacket packet) |
delegate void | LogEventRaised (LogPacket packet) |
delegate void | RuntimeErrorEventRaised (RuntimeErrorPacket packet) |
delegate void | HandledErrorEventRaised (HandledErrorPacket packet) |
delegate void | BacktestResultEventRaised (BacktestResultPacket packet) |
delegate void | ConsumerReadyEventRaised () |
void | Send (Packet packet) |
Send any message with a base type of Packet. More... | |
void | SendNotification (Notification notification) |
Send any notification with a base type of Notification. More... | |
void | SendEnqueuedPackets () |
Send any message with a base type of Packet that has been enqueued. More... | |
virtual void | OnConsumerReadyEvent () |
Handler for consumer ready code. More... | |
virtual void | Dispose () |
Dispose of any resources More... | |
Protected Member Functions | |
virtual void | OnDebugEvent (DebugPacket packet) |
Raise a debug event safely More... | |
virtual void | OnSystemDebugEvent (SystemDebugPacket packet) |
Raise a system debug event safely More... | |
virtual void | OnLogEvent (LogPacket packet) |
Raise a log event safely More... | |
virtual void | OnHandledErrorEvent (HandledErrorPacket packet) |
Raise a handled error event safely More... | |
virtual void | OnRuntimeErrorEvent (RuntimeErrorPacket packet) |
Raise runtime error safely More... | |
virtual void | OnBacktestResultEvent (BacktestResultPacket packet) |
Raise a backtest result event safely. More... | |
Properties | |
bool | HasSubscribers [get, set] |
Gets or sets whether this messaging handler has any current subscribers. When set to false, messages won't be sent. More... | |
Properties inherited from QuantConnect.Interfaces.IMessagingHandler | |
bool | HasSubscribers [get, set] |
Gets or sets whether this messaging handler has any current subscribers. When set to false, messages won't be sent. More... | |
Desktop implementation of messaging system for Lean Engine
Definition at line 27 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.Initialize | ( | MessagingHandlerInitializeParameters | initializeParameters | ) |
Initialize the Messaging System Plugin.
initializeParameters | The parameters required for initialization |
Implements QuantConnect.Interfaces.IMessagingHandler.
Definition at line 47 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.LoadingComplete | ( | ) |
Set Loaded to true
Definition at line 57 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.SetAuthentication | ( | AlgorithmNodePacket | job | ) |
Set the user communication channel
job |
Implements QuantConnect.Interfaces.IMessagingHandler.
Definition at line 66 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.Send | ( | Packet | packet | ) |
Send any message with a base type of Packet.
Implements QuantConnect.Interfaces.IMessagingHandler.
Definition at line 99 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.SendNotification | ( | Notification | notification | ) |
Send any notification with a base type of Notification.
notification | The notification to be sent. |
Implements QuantConnect.Interfaces.IMessagingHandler.
Definition at line 122 of file EventMessagingHandler.cs.
void QuantConnect.Messaging.EventMessagingHandler.SendEnqueuedPackets | ( | ) |
Send any message with a base type of Packet that has been enqueued.
Definition at line 135 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise a debug event safely
Definition at line 186 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise a system debug event safely
Definition at line 200 of file EventMessagingHandler.cs.
|
virtual |
Handler for consumer ready code.
Definition at line 214 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise a log event safely
Definition at line 226 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise a handled error event safely
Definition at line 238 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise runtime error safely
Definition at line 250 of file EventMessagingHandler.cs.
|
protectedvirtual |
Raise a backtest result event safely.
Definition at line 262 of file EventMessagingHandler.cs.
|
virtual |
Dispose of any resources
Definition at line 274 of file EventMessagingHandler.cs.
|
getset |
Gets or sets whether this messaging handler has any current subscribers. When set to false, messages won't be sent.
Definition at line 38 of file EventMessagingHandler.cs.