ServiceBehaviorAttribute.AutomaticSessionShutdown Property

Definition

Specifies whether to automatically close a session when a client closes an output session.

public bool AutomaticSessionShutdown { get; set; }

Property Value

true if services automatically close a session when the client closes an output session; otherwise, false. The default is true.

Remarks

By default when a client closes an output session and the service has finished processing any remaining messages the server closes the session. Setting AutomaticSessionShutdown to false prevents the server from automatically closing the session and enables custom control of session lifetimes.

Applies to

产品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1