Class BaseCommand
Base class of a command. When an instance of this class is processed in the control server, the connection identifier of the channel it was received from is assigned.
Inherited Members
Namespace: DuetAPI.Commands
Assembly: DuetAPI.dll
Syntax
public class BaseCommand
Constructors
BaseCommand()
Creates a new instance of the BaseCommand
Declaration
protected BaseCommand()
Properties
Command
Name of the command to execute
Declaration
public string Command { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Invoke()
Invokes the command implementation
Declaration
public virtual Task<object?> Invoke()
Returns
Type | Description |
---|---|
Task<object> | Result of the command |