Summary


This chapter discussed the rich features offered by Enterprise Services, such as automatic transactions, object pooling, queued components, and loosely coupled events.

To create serviced components, you have to reference the assembly System.EnterpriseServices. The base class of all serviced components is ServicedComponent. With this class the context makes it possible to intercept method calls. You can use attributes to specify the interception that will be used. You also learned how to configure an application and its components using attributes, as well as how to manage transactions and specify transactional requirements of components using the [Transaction] attribute.

Instead of using attributes with the class, Services without Components allows you to define transaction requirements within a method. Services without Components don't have the requirement to configure the class.




Professional C# 2005
Pro Visual C++ 2005 for C# Developers
ISBN: 1590596080
EAN: 2147483647
Year: 2005
Pages: 351
Authors: Dean C. Wills

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