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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.