Class SimpleCode
Perform a simple G/M/T-code
Inherited Members
Namespace: DuetAPI.Commands
Assembly: DuetAPI.dll
Syntax
[RequiredPermissions(SbcPermissions.CommandExecution)]
public class SimpleCode : Command<string>
Remarks
Internally the code passed is populated as a full Code instance and on completion its Result is transformed back into a basic string. This is useful for minimal extensions that do not require granular control of the code details. Except for certain cases, it is NOT recommended for usage in InterceptionMode because it renders the internal code buffer useless.
Properties
Channel
Destination channel
Declaration
public CodeChannel Channel { get; set; }
Property Value
Type | Description |
---|---|
CodeChannel |
Code
Code to parse and execute
Declaration
public string Code { get; set; }
Property Value
Type | Description |
---|---|
string |
ExecuteAsynchronously
Whether this code may be executed asynchronously. If set, the code reply is output as a generic message
Declaration
public bool ExecuteAsynchronously { get; set; }
Property Value
Type | Description |
---|---|
bool |