Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple messaging options for .net programs

Tags:

.net

messaging

We have two thick-client .NET applications that need to send messages to each other on the same machine, and we're looking for ideas on how to make that happen. We thought about MSMQ and .NET remoting, but those both seem to be network-oriented technologies with more heavy machinery than we're interested in using at the moment. Command line arguments are out, because we want to send messages to running instances of the application. Does anyone happen to know a really simple way to send messages between apps on a single machine in .NET?

like image 549
estanford Avatar asked Feb 22 '23 05:02

estanford


1 Answers

Anonymous pipes are probably the best bet:

http://msdn.microsoft.com/en-us/library/bb546102.aspx

The link above shows a simple example. This will only work on the same machine, so there's no network gubbins or WCF configuration or whatnot to get in the way.

like image 179
Jeremy McGee Avatar answered Feb 25 '23 01:02

Jeremy McGee