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.

Need Your Help

Remove word from substring

javascript jquery

I've got a list of links that looks like this

What tools exist for parsing Javascript and reading the results in Javascript or Ruby?

javascript ruby parsing abstract-syntax-tree s-expression

I'd like to do some code-analysis of Javascript. I'd prefer to operate on ASTs or S-Expressions. It's certainly possible that the V8 engine builds this, though I can't seem to find any documentatio...