Sprache

FoundryEnvironment.SessionInstanceId Property

Definition

The system-generated session incarnation identifier. Sourced from the FOUNDRY_AGENT_SESSION_GUID environment variable.

public static Guid? SessionInstanceId { get; }
static member SessionInstanceId : Nullable<Guid>
Public Shared ReadOnly Property SessionInstanceId As Nullable(Of Guid)

Property Value

Remarks

Unlike SessionId, which is the logical public session identity, this value is an internal identifier unique to one hosted session incarnation, independent of the session name. It changes when a session is recreated. Responses uses it to avoid reusing a durable task ID whose prior session was deleted and tombstoned by the service. In hosted environments, a non-empty value must be exactly 32 lowercase hexadecimal characters.

Applies to