共用方式為


IDurableOrchestrationContext.InstanceId Property

Definition

Gets the instance ID of the currently executing orchestration.

public string InstanceId { get; }
member this.InstanceId : string
Public ReadOnly Property InstanceId As String

Property Value

The ID of the current orchestration instance.

Remarks

The instance ID is generated and fixed when the orchestrator function is scheduled. It can be either auto-generated, in which case it is formatted as a GUID, or it can be user-specified with any format.

Applies to