다음을 통해 공유


DurableTaskOptions.ExtendedSessionsEnabled Property

Definition

Gets or sets a flag indicating whether to enable extended sessions.

public bool ExtendedSessionsEnabled { get; set; }
member this.ExtendedSessionsEnabled : bool with get, set
Public Property ExtendedSessionsEnabled As Boolean

Property Value

true to enable extended sessions; otherwise false.

Remarks

Extended sessions can improve the performance of orchestrator functions by allowing them to skip replays when new messages are received within short periods of time.

Note that orchestrator functions which are extended this way will continue to count against the MaxConcurrentOrchestratorFunctions limit. To avoid starvation, only half of the maximum number of allowed concurrent orchestrator functions can be concurrently extended at any given time. The ExtendedSessionIdleTimeoutInSeconds property can also be used to control how long an idle orchestrator function is allowed to be extended.

It is recommended that this property be set to false during development to help ensure that the orchestrator code correctly obeys the idempotency rules.

Applies to