15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

636 ❘ ChaPTer 23 system.trAnsActiOns<br />

Using the same transaction across multiple threads, you can use the DependentTransaction class to<br />

create a dependency on another transaction. By enlisting a resource manager that implements the interface<br />

IEnlistmentNotification, you can create custom resources that participate with transactions.<br />

Finally, you have seen how to use Windows 7 <strong>and</strong> Windows Server 2008 transactions with the .<strong>NET</strong><br />

Framework <strong>and</strong> <strong>C#</strong>.<br />

With .<strong>NET</strong> Enterprise Services, you can create automatic transactions that make use of System.<br />

Transactions. You can read about this technology in the online Chapter 51, “Enterprise Services.”<br />

In the next chapter, you can learn how to create a Windows service that can be automatically started when<br />

the operating system boots. Transactions can be useful within a service as well.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!