Udostępnij za pośrednictwem


ServiceBusSessionReceiver.IsClosed Property

Definition

Indicates whether or not this ServiceBusSessionReceiver has been closed by the user, or whether the underlying session link was closed due to either losing the session lock or having the link disconnected. If this is true, the receiver cannot be used for any more operations. If this is false, it is still possible that the session lock has been lost so it is important to still handle ServiceBusException with Reason equal to SessionLockLost.

public override bool IsClosed { get; }
member this.IsClosed : bool
Public Overrides ReadOnly Property IsClosed As Boolean

Property Value

true if the session receiver was closed by the user or if the underlying link was closed; otherwise, false.

Applies to