What is the simplest method of inter-process communication between 2 C# processes?

Horcrux7 picture Horcrux7 · Feb 9, 2009 · Viewed 110.5k times · Source

I want to create a communication between a parent and a child process, both written in C#.

It should be asynchronous, event-driven.

I don't want to run a thread in every process to handle the very rare communication.

What is the best solution for it?

Answer

Carlos A. Ibarra picture Carlos A. Ibarra · Feb 9, 2009

Anonymous pipes.

Use Asynchronous operations with BeginRead/BeginWrite and AsyncCallback.