I have multiple instances of the same Windows Forms .net 3.5 SP1 C# application running on the same machine.
Now I'd like to be able to communicate with them from .net, one instance at a time. What's the most simplest way to do this?
I read a bit about WCF, but I have only found examples working with one server and one client. But in my case all running instances would be a server and I need to discuss with just one of them.
I imagine something like this:
Process[] procs = Process.GetProcessesByName("ProcessName");
foreach (Process p in procs)
{
// Communicate with process here
}