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