PersistableIdleAction 列舉

定義

指定當工作流程在允許持續性的情況下變成閒置狀態時,所發生的動作。Specifies the action that occurs when a workflow becomes idle when persistence is allowed.

public enum class PersistableIdleAction
public enum PersistableIdleAction
type PersistableIdleAction = 
Public Enum PersistableIdleAction
繼承
PersistableIdleAction

欄位

None 0

指定不採取任何動作。Specifies that no action is taken.

Persist 2

指定 WorkflowApplication 應該保留工作流程。Specifies that the WorkflowApplication should persist the workflow.

Unload 1

指定 WorkflowApplication 應該保留並卸載工作流程。Specifies that the WorkflowApplication should persist and unload the workflow.

備註

當排程器沒有任何暫止工作項目,且可以保留工作流程執行階段時,就會叫用 PersistableIdle 函式。The PersistableIdle function is invoked when the scheduler has no more pending work items and the workflow runtime can persist. 請注意,不允許持續性時,將會叫用 Idle 函式,而允許持續性時,則會按此順序同時叫用 IdlePersistableIdleNote that the Idle function is invoked when persistence is not allowed, and both Idle and PersistableIdle are invoked in that order when persistence is allowed. 如果未提供任何處理程式,則 [無] 是預設動作 PersistableIdleNone is the default action if no PersistableIdle handler is provided.

適用於