Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

A CompensationHandlerActivity activity can contain a CompensateActivity activity. For information about how to use the CompensateActivity activity, see Using the CompensateActivity Activity.

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.

See Also

Copyright © 2007 by Microsoft Corporation. All rights reserved.

Community Additions

© 2015 Microsoft