What is the easiest way to do inter process communication in C#?

genesys picture genesys · Nov 26, 2009 · Viewed 24.5k times · Source

I have two C# applications and I want one of them send two integers to the other one (this doesn't have to be fast since it's invoked only once every few seconds).

What's the easiest way to do this? (It doesn't have to be the most elegant one.)

Answer

Greg Beech picture Greg Beech · Nov 26, 2009

The easiest and most reliable way is almost certainly IpcChannel (a.k.a. Inter Process Communication Channel); that's what it's there for. You can get it up and running with a couple of lines of code and configuration.