Class GCodeHandler
- Namespace
- DuetControlServer.Codes.Handlers
- Assembly
- DuetControlServer.dll
G-code handler
public sealed class GCodeHandler : ICodeHandler
- Inheritance
-
GCodeHandler
- Implements
- Inherited Members
Constructors
GCodeHandler()
public GCodeHandler()
Methods
CodeExecutedAsync(Code, CancellationToken)
React to an executed code before its result is returned
public ValueTask CodeExecutedAsync(Code code, CancellationToken cancellationToken)
Parameters
codeCodeCode processed by RepRapFirmware
cancellationTokenCancellationTokenCancellation token
Returns
- ValueTask
Result to output
ProcessAsync(Code, CancellationToken)
Process a G-code that should be interpreted by the control server
public ValueTask<Message?> ProcessAsync(Code code, CancellationToken cancellationToken)
Parameters
codeCodeCode to process
cancellationTokenCancellationTokenCancellation token