Compensate Activity
Last changed: 80.126.236.224

.
Summary

Triggers the compensation of a completed child Activity that implements the ICompensatableActivity interface.

The purpose of a CompensateActivity it to trigger compensation in the target activity.

A CompensateActivity can only be used in a CompensationHandlerActivity, a CancellationHandlerActivity activity or a FaultHandlerActivity. The target activity must be a child of the activity containing the CompensateActivity

The TargetActivityName must point to an activity of type ICompensatableActivity. By default there are two the CompensatableSequenceActivity and the CompensatableTransactionScopeActivity.

Because you cannot use a CompensateActivity in the normal logic of a workflow you need to use a