Dan Ling
Dan Ling

Reputation: 2984

What methods exist for local remote procedure call?

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?

Upvotes: 13

Views: 14403

Answers (5)

tchelidze
tchelidze

Reputation: 8318

Try Protobuffers over Win32 RPC

Upvotes: 1

MarcF
MarcF

Reputation: 3299

networkComms.net provides very general RPC functionality, see RPCExample.cs.

Upvotes: 0

Stefan P.
Stefan P.

Reputation: 9519

I would recommend .NET Remoting configured with IPC channels, in my opinion this is the fastest way of communication between applications running on the same PC.

Upvotes: 2

JaredPar
JaredPar

Reputation: 755161

There are several options available to you here. The most prominent though are

Both can be used for communication between processes on a remote or local machine.

Upvotes: 3

Darin Dimitrov
Darin Dimitrov

Reputation: 1039160

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.

Upvotes: 8

Related Questions