Freigeben über


Using Transactions in Workflows

Windows Workflow Foundation provides support for recovery from transaction failure by using the TransactionScopeActivity activity to wrap .NET Framework System.Transactions transactions, which automatically roll back their actions if an error occurs. For more information about System.Transactions, see the .NET Framework System.Transactions.Transaction and System.Transactions.TransactionScope classes and related types in the MSDN Library.

The CompensatableTransactionScopeActivity activity wraps transactions like the TransactionScopeActivity activity, except it also supports compensation.

For more information about the TransactionScopeActivity activity, see Using the TransactionScopeActivity Activity.

For more information about the CompensatableTransactionScopeActivity activity, see Using the CompensatableTransactionScopeActivity Activity.

For a code sample that demonstrates how to use the CompensatableTransactionScopeActivity activity, see Using Compensation.

See Also

Reference

TransactionScopeActivity

Concepts

Creating Custom WorkflowCommitWorkBatchService Services
Using the TransactionScopeActivity Activity

Other Resources

Developing Workflows