Skip to content

DurableOperation Constructors

Represents an operation's status monitor: the resource which reports a durable task's status and, once it is terminal, its result or error.

DurableOperation(string, DurableOperationStatus, JsonElement?, DurableOperationError?)

View source
public DurableOperation(string Id, DurableOperationStatus Status, JsonElement? Result = null, DurableOperationError? Error = null)
Represents an operation's status monitor: the resource which reports a durable task's status and, once it is terminal, its result or error.

Parameters

Idstring
The operation identifier, which addresses the status monitor.
StatusDurableOperationStatus
The operation's status.
ResultJsonElement?
The task's result, when it succeeded with a value.
ErrorDurableOperationError?
The task's failure or cancellation, when it failed or was canceled.