Table of Contents

Class SetLastCodeResultRequest

Namespace
DuetControlServer.Link
Assembly
DuetControlServer.dll

Internal storage class to update the last code result for a specific code channel

public class SetLastCodeResultRequest
Inheritance
SetLastCodeResultRequest
Inherited Members

Constructors

Internal storage class to update the last code result for a specific code channel

public SetLastCodeResultRequest(CodeChannel channel, CodeResult result)

Parameters

channel CodeChannel

Where to update the result

result CodeResult

Code result to set

Properties

Where the expression is evaluated

public CodeChannel Channel { get; }

Property Value

CodeChannel

Expression to evaluate

public CodeResult Result { get; }

Property Value

CodeResult

Task that completes when the request has been fulfilled

public Task Task { get; }

Property Value

Task

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()