Compartilhar via


TaskOrchestrationContext.SetCustomStatus(Object) Method

Definition

Assigns a custom status value to the current orchestration.

public abstract void SetCustomStatus (object? customStatus);
abstract member SetCustomStatus : obj -> unit
Public MustOverride Sub SetCustomStatus (customStatus As Object)

Parameters

customStatus
Object

A serializable value to assign as the custom status value or null to clear the custom status.

Exceptions

Thrown if the calling thread is anything other than the main orchestrator thread.

Remarks

The customStatus value is serialized and stored in orchestration state and will be made available to the orchestration status query APIs. The serialized value must not exceed 16 KB of UTF-16 encoded text.

Applies to