IPendingWork Interface
Provides methods to participate in a work batch.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
The IPendingWork type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Commit | Commits the list of work items by using the specified Transaction object. |
![]() | Complete | Called when the transaction has completed. |
![]() | MustCommit | Allows the items in the work batch to assert whether they must commit immediately. |
The IPendingWork interface is provided for services that want to participate in the workflow runtime engine batching mechanism. The batching mechanism is especially useful for services that use a durable store. It is often important in these cases to maintain consistency between the durable store used by the service and the internal state of the workflow runtime engine.
If you want your service to participate in workflow transaction batching provided by the WorkflowCommitWorkBatchService, you must implement the methods defined by the IPendingWork interface. The workflow runtime engine will call the Commit method on your service to commit the batch.
The SqlWorkflowPersistenceService class implements the IPendingWork interface.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
