Editar

Partilhar via


CallbackBehaviorAttribute.AutomaticSessionShutdown Property

Definition

Specifies whether to automatically close a session when a service closes a duplex session.

public:
 property bool AutomaticSessionShutdown { bool get(); void set(bool value); };
public bool AutomaticSessionShutdown { get; set; }
member this.AutomaticSessionShutdown : bool with get, set
Public Property AutomaticSessionShutdown As Boolean

Property Value

true if duplex callback objects automatically close a session when the service closes a duplex session; otherwise, false. The default is true.

Remarks

By default, when a service closes a duplex session and the callback has finished processing any remaining messages, the callback closes the session. Setting AutomaticSessionShutdown to false prevents the client from automatically closing the session.

Applies to