Traditional ACID (atomic, consistent, isolated, and durable) transactions are available in Windows Workflow. Under the covers, the runtime makes use of the Transaction
class in the System.Transactions
namespace. The Transaction
class can manage transactions across different types of durable stores, including Microsoft SQL Server and other relational databases, and products like Microsoft Message Queuing. When needed, the Transaction
class can use the Microsoft Distributed Transaction Coordinator (MSDTC) for heavy-weight two-phase commit transactions.
Like the TransactionScope
class of System.Transactions
, the TransactionScope
activity will start a transaction and implicitly enlist any activities it contains into the transaction. The TransactionOptions
property controls the timeout and the isolation level of the transaction.
If the TransactionScope
activity finishes with no errors it will automatically commit the transaction. If...