IPendingWork 介面

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

提供參與工作批次的方法。

public interface class IPendingWork
public interface IPendingWork
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IPendingWork
type IPendingWork = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IPendingWork = interface
Public Interface IPendingWork
衍生
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

IPendingWork 介面提供的對象為所有要參與工作流程執行階段引擎批次處理機制的服務。 批次處理機制對於使用長期存放區的服務特別有用。 在這些情況中,保持服務使用的長期存放區與工作流程執行階段引擎內部狀態之間的一致性相當重要。

如果想要讓您的服務參與 WorkflowCommitWorkBatchService 提供的工作流程交易批次處理,必須實作 IPendingWork 介面定義的方法。 工作流程執行階段引擎將呼叫您服務上的 Commit 方法以認可批次。

SqlWorkflowPersistenceService 類別會實作 IPendingWork 介面。

方法

Commit(Transaction, ICollection)
已淘汰.

使用指定的 Transaction 物件認可工作項目清單。

Complete(Boolean, ICollection)
已淘汰.

當完成異動時會呼叫它。

MustCommit(ICollection)
已淘汰.

允許工作批次中的項目判斷提示是否必須立刻認可。

適用於