Introduction to .NET Support for COM+ Services

The .NET Frameworks provides extensive support for COM+ services such as transactions, JIT activation, object pooling, and others. COM+ Services are activated through the use of attributes, which decorate a specific C# element as appropriate. These attributes are analogous to the COM+ concepts you may already be familiar with. To get started, let's take a look at Listing 33.6, a minimal C# program that will be registered as a COM+ component.

Listing 33.6. A Minimal C# COM+ Component
 using System; using System.Reflection; using System.EnterpriseServices; [assembly: ApplicationName("CPSkel")] [assembly: AssemblyKeyFileAttribute(@"..\..\CPSkel.snk")] namespace ComPlusServices { /// <summary> /// COM+ ...

Get C# Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.