Class Functions
Class to register SBC-dependent functions
Inherited Members
Namespace: DuetControlServer.Codes.Handlers
Assembly: DuetControlServer.dll
Syntax
public static class Functions
Methods
Exists(CodeChannel, string, object?[])
Implementation for exists() meta G-code call
Declaration
public static Task<object?> Exists(CodeChannel channel, string functionName, object?[] arguments)
Parameters
Type | Name | Description |
---|---|---|
CodeChannel | channel | Code channel |
string | functionName | Function name |
object[] | arguments | Function arguments |
Returns
Type | Description |
---|---|
Task<object> | Whether the file exists |
FileExists(CodeChannel, string, object?[])
Implementation for fileexists() meta G-code call
Declaration
public static Task<object?> FileExists(CodeChannel channel, string functionName, object?[] arguments)
Parameters
Type | Name | Description |
---|---|---|
CodeChannel | channel | Code channel |
string | functionName | Function name |
object[] | arguments | Function arguments |
Returns
Type | Description |
---|---|
Task<object> | Whether the file exists |
FileRead(CodeChannel, string, object?[])
Implementation for fileread() meta G-code call
Declaration
public static Task<object?> FileRead(CodeChannel channel, string functionName, object?[] arguments)
Parameters
Type | Name | Description |
---|---|---|
CodeChannel | channel | |
string | functionName | |
object[] | arguments |
Returns
Type | Description |
---|---|
Task<object> |
Init()
Initializer function to register custom meta G-code functions
Declaration
public static void Init()