Table of Contents

Class EvaluateExpressionRequest

Namespace
DuetControlServer.Link
Assembly
DuetControlServer.dll

Internal storage class for expression evaluation requests

public class EvaluateExpressionRequest
Inheritance
EvaluateExpressionRequest
Inherited Members

Constructors

Internal storage class for expression evaluation requests

public EvaluateExpressionRequest(CodeChannel channel, string expression)

Parameters

channel CodeChannel

Where to evaluate the expression

expression string

Expression to evaluate

Properties

Where the expression is evaluated

public CodeChannel Channel { get; }

Property Value

CodeChannel

Expression to evaluate

public string Expression { get; }

Property Value

string

Task that completes when the request has been fulfilled

public Task<object?> Task { get; }

Property Value

Task<object>

Whether the request has been sent to the firmware

public bool Written { get; set; }

Property Value

bool

Methods

Set the task to canceled

public void SetCanceled()

Set an exception for the task

public void SetException(Exception exception)

Parameters

exception Exception

Exception to set

Set the result of the evaluated expression

public void SetResult(object? result)

Parameters

result object

Result to set