Class EvaluateExpressionRequest
- Namespace
- DuetControlServer.Link
- Assembly
- DuetControlServer.dll
Internal storage class for expression evaluation requests
public class EvaluateExpressionRequest
- Inheritance
-
EvaluateExpressionRequest
- Inherited Members
Constructors
EvaluateExpressionRequest(CodeChannel, string)
Internal storage class for expression evaluation requests
public EvaluateExpressionRequest(CodeChannel channel, string expression)
Parameters
channelCodeChannelWhere to evaluate the expression
expressionstringExpression to evaluate
Properties
Channel
Where the expression is evaluated
public CodeChannel Channel { get; }
Property Value
Expression
Expression to evaluate
public string Expression { get; }
Property Value
Task
Task that completes when the request has been fulfilled
public Task<object?> Task { get; }
Property Value
Written
Whether the request has been sent to the firmware
public bool Written { get; set; }
Property Value
Methods
SetCanceled()
Set the task to canceled
public void SetCanceled()
SetException(Exception)
Set an exception for the task
public void SetException(Exception exception)
Parameters
exceptionExceptionException to set
SetResult(object?)
Set the result of the evaluated expression
public void SetResult(object? result)
Parameters
resultobjectResult to set