What methods exist for local remote procedure call?

Dan Ling picture Dan Ling · Nov 16, 2010 · Viewed 12k times · Source

I am working on two separate C# applications, and I'm trying to determine what is the best way to create a remote procedure call from one app to the other. Webservices are not necessary in this case because the applications will always run on the same machine (Windows OS). What types of RPC are available in C# and .net that I can use?

Answer

Darin Dimitrov picture Darin Dimitrov · Nov 16, 2010

I would recommend WCF with NetNamedPipeBinding for interprocess communication. Here's an example.

There's also Remoting which has been around since .NET 1.0 but becoming obsolete in favor of WCF.