Class Command
Base class of commands that do not return a result
Inheritance
Command
Inherited Members
Namespace: DuetAPI.Commands
Assembly: DuetAPI.dll
Syntax
public abstract class Command : BaseCommand
Methods
Execute()
Reserved for the actual command implementation in the control server
Declaration
public virtual Task Execute()
Returns
| Type | Description |
|---|---|
| Task | Asynchronous task |
Invoke()
Invokes the command implementation
Declaration
public override Task<object?> Invoke()
Returns
| Type | Description |
|---|---|
| Task<object> | null |