Class Command
Base class of commands that do not return a result
Inheritance
System.Object
Command
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
Invoke()
Invokes the command implementation
Declaration
public override async Task<object> Invoke()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | null |