Table of Contents

Class KeywordHandler

Namespace
DuetControlServer.Codes.Handlers
Assembly
DuetControlServer.dll

Meta G-code keyword handler

public sealed class KeywordHandler : ICodeHandler
Inheritance
KeywordHandler
Implements
Inherited Members

Constructors

Meta G-code keyword handler

public KeywordHandler(CodeProcessor codeProcessor, Expressions expressions, FilePathResolver filePathResolver, LinkInterface linkInterface, ILogger<KeywordHandler> logger, IOptions<Settings> settings)

Parameters

codeProcessor CodeProcessor

Code processor

expressions Expressions

Meta G-code expression parser

filePathResolver FilePathResolver

File path resolver

linkInterface LinkInterface

Link interface

logger ILogger<KeywordHandler>

Logger

settings IOptions<Settings>

Settings

Methods

CodeExecutedAsync(Code, CancellationToken)

React to an executed T-code before its result is returned

public ValueTask CodeExecutedAsync(Code code, CancellationToken cancellationToken)

Parameters

code Code

Code processed by RepRapFirmware

cancellationToken CancellationToken

Cancellation token

Returns

ValueTask

Result to output

ProcessAsync(Code, CancellationToken)

Process a non-branching meta G-code statement

public ValueTask<Message?> ProcessAsync(Code code, CancellationToken cancellationToken)

Parameters

code Code

Code to process

cancellationToken CancellationToken

Cancellation token

Returns

ValueTask<Message>

Result of the code if the code completed

Exceptions

OperationCanceledException

The code was cancelled