CallbackBehaviorAttribute.AutomaticSessionShutdown 屬性

定義

指定是否要在服務關閉雙工工作階段時自動關閉工作階段。

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

屬性值

Boolean

如果雙工回呼物件會在服務關閉雙工工作階段時自動關閉工作階段,則為 true,否則為 false。 預設為 true

備註

根據預設,當服務關閉雙工工作階段且回呼已完成處理任何剩餘的訊息時,回呼便會關閉工作階段。 將 AutomaticSessionShutdown 設定為 false,可防止用戶端自動關閉工作階段。

適用於