Does WCF really replace .NET Remoting?

后端 未结 1 1149
慢半拍i
慢半拍i 2021-02-04 10:38

I can understand that WCF is in general better than Remoting, but the two seem quite different to me. MS make this pretty picture to show how great WCF is (or perhaps how poor t

相关标签:
1条回答
  • 2021-02-04 11:32

    It really does replace .Net remoting. You can use a binary formatter with a Tcp channel and get the same experience as remoting.

    For your case, remoting doesn't really seem to be the right choice. If you want to replicate objects, as in make copies of them in a different location, then you want to serialize them and send them as a bundle (a "message" in WCF lingo) to be loaded into a type (could be the same type in the same assembly, but deployed on a different server) on the remote endpoint. This is where WCF excels. Remoting would give you a connection to a "live" object from one endpoint to the other.

    0 讨论(0)
提交回复
热议问题