4

I currently have two programs that need to comunicate one with another. It doesn't have to be something complicated, it's just passing data from one to another, all very simple. I was thinking of using .net remoting, but I've heard there's a new thing WCF. Should I go for the .net remoting or try WCF? Or is there something simpler to use?

edit: Both applications are simple, I don't want to have anything to do with IIS, services and such.

Thanks

devoured elysium
  • 96,110
  • 125
  • 328
  • 542

6 Answers6

5

use WCF with named pipes binding, here you can find useful examples

Arsen Mkrtchyan
  • 48,710
  • 31
  • 147
  • 181
2

WCF has a bit of a learning curve, but it's a very powerful communication framework. If you have some time to learn it, I'd recommend that over .NET remoting.

If you just need a super-simple mechanism, you could just write data to a file, then read it from the other program (assuming same machine). If it has to go over the network, using a plain Socket in .NET isn't too bad.

Andy White
  • 84,168
  • 47
  • 173
  • 207
2

The magic phrase is "inter-process communication". Then you'll be able to find answers like this.

Community
  • 1
  • 1
DSO
  • 9,283
  • 10
  • 51
  • 58
1

I've used .Net remoting for this in the past, and its worked very well for me. Its very simple and straightforward for something like you describe.

jsight
  • 27,201
  • 24
  • 105
  • 139
1

If you look into WCF now, I really don't think you would regret later. WCF is great and useful for this purpose.

Ezombort
  • 1,832
  • 3
  • 16
  • 20
1

If you want something really simple, just put the data in a database or a file.

Lance Roberts
  • 21,757
  • 30
  • 108
  • 129