|
Lean
$LEAN_TAG$
|
Base algorithm command handler More...
Public Member Functions | |
| virtual void | Initialize (AlgorithmNodePacket job, IAlgorithm algorithm) |
| Initializes this command queue for the specified job More... | |
| IEnumerable< CommandResultPacket > | ProcessCommands () |
| Will consumer and execute any command in the queue More... | |
| virtual void | Dispose () |
| Disposes of this instance More... | |
Protected Member Functions | |
| abstract IEnumerable< ICommand > | GetCommands () |
| Get the commands to run More... | |
| virtual void | Acknowledge (ICommand command, CommandResultPacket commandResultPacket) |
| Acknowledge a command that has been executed More... | |
| ICommand | TryGetCallbackCommand (string payload) |
| Helper method to create a callback command More... | |
Static Protected Attributes | |
| static readonly JsonSerializerSettings | Settings = new() { TypeNameHandling = TypeNameHandling.All } |
| Command json settings More... | |
Properties | |
| IAlgorithm | Algorithm [get, set] |
| The algorithm instance More... | |
Base algorithm command handler
Definition at line 30 of file BaseCommandHandler.cs.
|
virtual |
Initializes this command queue for the specified job
| job | The job that defines what queue to bind to |
| algorithm | The algorithm instance |
Implements QuantConnect.Commands.ICommandHandler.
Definition at line 47 of file BaseCommandHandler.cs.
|
protectedpure virtual |
Get the commands to run
Implemented in QuantConnect.Commands.FileCommandHandler.
|
protectedvirtual |
Acknowledge a command that has been executed
| command | The command that was executed |
| commandResultPacket | The result |
Reimplemented in QuantConnect.Commands.FileCommandHandler.
Definition at line 62 of file BaseCommandHandler.cs.
| IEnumerable<CommandResultPacket> QuantConnect.Commands.BaseCommandHandler.ProcessCommands | ( | ) |
Will consumer and execute any command in the queue
Implements QuantConnect.Commands.ICommandHandler.
Definition at line 70 of file BaseCommandHandler.cs.
|
virtual |
Disposes of this instance
Definition at line 110 of file BaseCommandHandler.cs.
|
protected |
Helper method to create a callback command
Definition at line 118 of file BaseCommandHandler.cs.
|
staticprotected |
Command json settings
Definition at line 35 of file BaseCommandHandler.cs.
|
getsetprotected |
The algorithm instance
Definition at line 40 of file BaseCommandHandler.cs.