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
- 派生
- 属性
注解
注释
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
为 IPendingWork 想要参与工作流运行时引擎批处理机制的服务提供接口。 批处理机制对于使用持久存储的服务特别有用。 在这些情况下,维护服务使用的持久存储与工作流运行时引擎的内部状态之间的一致性通常很重要。
如果希望服务参与由 WorkflowCommitWorkBatchService该服务提供的工作流事务批处理,则必须实现接口定义的 IPendingWork 方法。 工作流运行时引擎将调用 Commit 服务上的方法来提交批处理。
SqlWorkflowPersistenceService 类实现 IPendingWork 接口。
方法
| 名称 | 说明 |
|---|---|
| Commit(Transaction, ICollection) |
已过时.
使用指定的 Transaction 对象提交工作项的列表。 |
| Complete(Boolean, ICollection) |
已过时.
事务完成时调用。 |
| MustCommit(ICollection) |
已过时.
允许工作批处理中的项断言它们是否必须立即提交。 |