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 |
---|---|---|
Code |
channel | Code channel |
string | functionName | Function name |
object[] | arguments | Function arguments |
Returns
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 |
---|---|---|
Code |
channel | Code channel |
string | functionName | Function name |
object[] | arguments | Function arguments |
Returns
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 |
---|---|---|
Code |
channel | |
string | functionName | |
object[] | arguments |
Returns
Init()
Initializer function to register custom meta G-code functions
Declaration
public static void Init()