Summary


In this chapter, you’ve learned the attributes of transactions and how you can create and manage transactions with the classes from the System.Transactions namespace.

Transactions are described with ACID properties: atomicity, consistency, isolation, and durability. Not all these properties are always required, as you’ve seen with volatile resources that don’t support durability and with isolation options.

The easiest way dealing with transactions is by creating ambient transactions and using the TransactionScope class. Using the same transaction across multiple threads, you can use the DependentTransaction class to create a dependency on another transaction. By enlisting a resource manager that implements the interface IEnlistmentNotification, you can create custom resources that participate with transactions.

Finally, you’ve seen how to use Windows Vista transactions with the .NET Framework and C#.




Professional C# 2005 with .NET 3.0
Professional C# 2005 with .NET 3.0
ISBN: 470124725
EAN: N/A
Year: 2007
Pages: 427

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net