Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IPendingWork Interface

IPendingWork Interface

Note: This API is now obsolete.

Provides methods to participate in a work batch.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IPendingWork

The IPendingWork type exposes the following members.

Public methodCommitCommits the list of work items by using the specified Transaction object.
Public methodCompleteCalled when the transaction has completed.
Public methodMustCommitAllows the items in the work batch to assert whether they must commit immediately.


This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

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.

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5.2
© 2015 Microsoft