IPendingWork Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
Provides methods to participate in a work batch.
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
- Derived
- Attributes
Remarks
Note
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.
Methods
Commit(Transaction, ICollection) |
Commits the list of work items by using the specified Transaction object. |
Complete(Boolean, ICollection) |
Called when the transaction has completed. |
MustCommit(ICollection) |
Allows the items in the work batch to assert whether they must commit immediately. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기