How to implement singleton.NET component for use by several processes?

I would like to implement the component in .NET and use it in COM clients using COM interaction.

I would like this component to be single for all processes that use it.

This thread suggests using WCF / remoting, but not going into details. Is there a good link / example?

+4
source share
2 answers

Remoting is a relic of the past and is replaced by WCF.

You need to implement the WCF service and set the instancing Single mode.

I suggest you expose it as a Named Pipe service and place it in a Windows service. A warning, however, if it starts to give you problems with Pin Named Pipes , you may need to use the TCP binding.

+4
source

Why not create a Windows service that the COM component interacts with? COM is the interface that all your users work with, while the service contains the actual logic.

0
source

All Articles