How to implement a singleton .NET component, for use by multiple processes?
I would like to implement a component in .NET, and consume it in COM-aware clients via COM interop.
I would like this component to be a singleton across all processes that use it.
This thread suggests using WCF/remoting but doesn't go into much detail. Is there a good reference/example?
Remoting is a relic of the past and has been replaced by WCF.
You need to implement a WCF service and set the instancing mode to Single.
I suggest you expose it as a Named Pipe service and host it on Windows service. A word of caution, however, if it starts giving you problems with Named Pipe hardening, you might have to use TCP binding.