C# and DCOM

  • Thread starter Thread starter millzy
  • Start date Start date
M

millzy

Hi,

I need to create an application/service that will run all the time on a
server and will need to expose one of its methods through COM/DCOM.

It will be accessed by many clients at the same time but they will be
accessing shared data so they will simply be queued.

I want to create it in C# but i'm not sure whether it should be a
windows service or a console application.

If you have any advice on this I would be very grateful

Thanks

Millzy
 
Hi

Use Com+ (System.EnterpriseServices.ServicedComponent) and run it as a
service (There is a option in Component Services).

Regards,

Daniel Roth
MCSD.NET
 
Thanks,

So i should create a Windows Services project yes?

I was going to just create an application but i've heard that C#
applications dont expose there methods very well.

So basically I create a Windows service and then have

using System.EnterpriseServices.ServicedComponent;

in the code.

Do i still need to use the GUID like
[GUID("4C461257-82C2-43c4-B52D-66FAB55A851F")] on the methods that i
need to expose?

Thanks

Millzy
 
Hi

No, not a Windows Services project, you want a COM+ application in
..NET. That is hosted by Component Services.

Do some research about COM+ and .NET

Regards,
Daniel Roth
MCSD.NET
 
Back
Top