你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceBusSessionProcessorOptions.SessionIdleTimeout Property

Definition

Gets or sets the maximum amount of time to wait for a message to be received for the currently active session. After this time has elapsed, the processor will close the session and attempt to process another session. If not specified, the TryTimeout will be used.

public TimeSpan? SessionIdleTimeout { get; set; }
member this.SessionIdleTimeout : Nullable<TimeSpan> with get, set
Public Property SessionIdleTimeout As Nullable(Of TimeSpan)

Property Value

Exceptions

A value that is not positive is attempted to be set for the property.

Remarks

If SessionIds is populated and MaxConcurrentSessions is greater or equal to the number of sessions specified in SessionIds, the session will not be closed when the idle timeout elapses. However, it will still control the amount of time each receive call waits.

Applies to