Class Functions
- Namespace
- DuetControlServer.Codes.Meta
- Assembly
- DuetControlServer.dll
Service to provide SBC-dependent meta G-code function implementations
public class Functions : IHostedService
- Inheritance
-
Functions
- Implements
- Inherited Members
Constructors
Functions(Expressions, FilePathResolver, Filter, LinkInterface)
Service to provide SBC-dependent meta G-code function implementations
public Functions(Expressions expressions, FilePathResolver filePathResolver, Filter filter, LinkInterface linkInterface)
Parameters
expressionsExpressionsfilePathResolverFilePathResolverfilterFilterlinkInterfaceLinkInterface
Methods
Exists(CodeChannel, string, object?[])
Implementation for exists() meta G-code call
public Task<object?> Exists(CodeChannel channel, string functionName, object?[] arguments)
Parameters
channelCodeChannelCode channel
functionNamestringFunction name
argumentsobject[]Function arguments
Returns
FileExists(CodeChannel, string, object?[])
Implementation for fileexists() meta G-code call
public Task<object?> FileExists(CodeChannel channel, string functionName, object?[] arguments)
Parameters
channelCodeChannelCode channel
functionNamestringFunction name
argumentsobject[]Function arguments
Returns
FileRead(CodeChannel, string, object?[])
Implementation for fileread() meta G-code call
public Task<object?> FileRead(CodeChannel channel, string functionName, object?[] arguments)
Parameters
channelCodeChannelfunctionNamestringargumentsobject[]
Returns
StartAsync(CancellationToken)
Start the hosted service and register custom functions
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
StopAsync(CancellationToken)
Stop the hosted service
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken