TaskRegistrationOptions.Timeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The cap on how long a single turn (one handler invocation) may run uninterrupted. Defaults to 1 day when unset, which is also a hard ceiling: a supplied value lowers the budget but can never raise it above 1 day (larger values, and negative values, are rejected at registration with ArgumentOutOfRangeException). This is per turn, not per task and does not limit how long a multi-turn task can live — a multi-turn task may stay alive indefinitely across many turns. A task's overall lifetime is governed separately by the platform's 30-day sliding TTL (a task is cleaned up only after 30 days with no new turns).
public TimeSpan? Timeout { get; set; }
member this.Timeout : Nullable<TimeSpan> with get, set
Public Property Timeout As Nullable(Of TimeSpan)