Creating a Serviced Component
A managed class that uses the .NET Enterprise Services is called a serviced component. To create a serviced component, you need to perform the following steps:
1. | Derive your class either directly or indirectly from the System.EnterpriseServices.ServicedComponent base class. |
2. | Add attributes to your classes, methods, and interfaces that specify the services that you want to use. |
3. | Add assembly-level attributes that specify the type of COM+ application you would like to create: Library (in-process) or Server (out-of-process). You can also use assembly-level attributes to specify other things about your COM+ application, such as its name or GUID. |
4. | Use the ContextUtil and SecurityCallContext classes to interact with ... |
Get .NET and COM Interoperability Handbook, The 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.