語言

WorkflowServiceHost.OnClosing 方法

定義

此方法在 進入閉合狀態前 WorkflowServiceHost 被呼叫。

protected:
 override void OnClosing();
protected override void OnClosing();
override this.OnClosing : unit -> unit
Protected Overrides Sub OnClosing ()

備註

在預設實作中, WorkflowServiceHost 先呼叫 StopRuntime 再呼叫 CommunicationObject.OnClosing。 這表示工作流程執行時會在服務主機關閉前關閉。

適用於