Op Englesch liesen Editéieren

Deelen iwwer


WorkflowEnvironment.WorkBatch Property

Definition

Gets the current work batch.

C#
public static System.Workflow.Runtime.IWorkBatch WorkBatch { get; }

Property Value

The IWorkBatch that represents the current work batch.

Remarks

The WorkBatch property allows hosts or host services to participate in the current transaction by adding pending work items to the current work batch. A host or a host service that wants to participate in the current transaction must implement the IPendingWork interface and use IWorkBatch.Add to add pending work items to WorkBatch. Durable services should add items to WorkBatch to keep the state of their data stores consistent with the state of the workflow instance. The out-of-box durable services, SqlTrackingService and SqlWorkflowPersistenceService, both implement this functionality.

Applies to

Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1