Class SimpleCode
Implementation of the SimpleCode command
Implements
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: DuetControlServer.Commands
Assembly: DuetControlServer.dll
Syntax
public sealed class SimpleCode : SimpleCode, IConnectionCommand
Properties
Connection
Source connection of this command
Declaration
public Connection Connection { get; set; }
Property Value
Type | Description |
---|---|
Connection |
Methods
Execute()
Converts simple G/M/T-codes to a regular Code instances, executes them and returns the result as text
Declaration
public override async Task<string> Execute()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | Code result as text |
Overrides
DuetAPI.Commands.Command<System.String>.Execute()
Exceptions
Type | Condition |
---|---|
System.OperationCanceledException | Code has been cancelled |
ParseAsync()
Parse codes from the given input string asynchronously
Declaration
public async IAsyncEnumerable<Code> ParseAsync()
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerable<Code> | Parsed G/M/T-codes |