I Have many Foo.exe running, and I want to invoke some Foo methods on specific instances (Foo_1.DoStuff() ) via an external controller (Bar.exe)
Bar should be able to see any Foo.exe running and interact with each one.
What would be the best/simplest techno/architecture to achieve this ?
I thought of WCF but I faced some limitations (I do not need a service per se, I need Foo to expose some interfaces invokable at runtime) but maybe this was due to my average mastering of this technology.
PS : Just for information, this is a synthetic/general version of a more specific/detailed question asked here
EDIT : Using a Self-Hosted Service properly did the trick.
What you need is a way of interprocess communication. That can be easily done with WCF or .NET Remoting.