Class SimpleCode
Implementation of the SimpleCode command
Implements
Inherited Members
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 Task<string> Execute()
Returns
| Type | Description |
|---|---|
| Task<string> | Code result as text |
Overrides
Exceptions
| Type | Condition |
|---|---|
| OperationCanceledException | Code has been cancelled |
ParseAsync()
Parse codes from the given input string asynchronously
Declaration
public IAsyncEnumerable<Code> ParseAsync()
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<Code> | Parsed G/M/T-codes |