IPendingWork 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
- 衍生
- 屬性
備註
Note
此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的
此 IPendingWork 介面是為想參與工作流程執行時引擎批次處理機制的服務所提供。 批次處理機制對於使用耐用儲存庫的服務特別有用。 在這些情況下,維持服務所使用的持久儲存庫與工作流程執行引擎內部狀態之間的一致性通常非常重要。
如果你想讓你的服務參與由 所提供的 WorkflowCommitWorkBatchService工作流程交易批次處理,你必須實作介面中定義的方法 IPendingWork 。 工作流程執行引擎會在你的服務中呼叫該 Commit 方法來提交批次。
SqlWorkflowPersistenceService 類別會實作 IPendingWork 介面。
方法
| 名稱 | Description |
|---|---|
| Commit(Transaction, ICollection) |
已淘汰.
透過指定 Transaction 物件提交工作項目清單。 |
| Complete(Boolean, ICollection) |
已淘汰.
交易完成後才會被呼叫。 |
| MustCommit(ICollection) |
已淘汰.
允許工作批次中的項目判斷是否必須立即提交。 |