CallbackBehaviorAttribute.AutomaticSessionShutdown Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Specifies whether to automatically close a session when a service closes a duplex session.
Namespace: System.ServiceModel
Assembly: System.ServiceModel.Extensions (in System.ServiceModel.Extensions.dll)
Syntax
'Declaration
Public Property AutomaticSessionShutdown As Boolean
public bool AutomaticSessionShutdown { get; set; }
Property Value
Type: System.Boolean
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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.