Using the CompensationHandlerActivity Activity
The CompensationHandlerActivity is a wrapper for one or more activities that perform compensation for a completed ICompensatableActivity. Only activities that implement the ICompensatableActivity interface can be compensated. The two Windows Workflow Foundation out-of-box activities that implement the ICompensatableActivity interface are CompensatableTransactionScopeActivity and CompensatableSequenceActivity. You can also write custom activities that support compensation using the ICompensatableActivity interface.
For more information, see the CompensationHandlerActivity class of the System.Workflow.ComponentModel namespace in the Windows Workflow Foundation Class Library reference.
For a code sample that demonstrates how to use the CompensationHandlerActivity activity, see Using Compensation.
ConceptsUsing the CompensateActivity Activity
Using the CompensatableSequenceActivity Activity
Using the CompensatableTransactionScopeActivity Activity
Other ResourcesCompensation Sample
Windows Workflow Foundation Activities
Copyright © 2007 by Microsoft Corporation. All rights reserved.