.NET Remoting over WCF?

*爱你&永不变心* 提交于 2019-12-10 09:40:50

问题


Why would you use .NET Remoting over WCF?

I understand that WCF has its distinct advantages, but what advantages would .NET Remoting offer you over the more modern WCF technology?


回答1:


WCF provides the ability to essentially do exactly what .NET Remoting does through the choice of binding you use when configuring your WCF service.

WCF abstracts the idea of a service from the transport technology that is used to implement that service. You can define a WCF service and then change the transport technology used to provide that service through configuration, one of these being net/tcp which is essentially the technology .NET Remoting uses.

WCF is more of a replacement for .NET Remoting than an alternative.




回答2:


WCF is .NET Remoting's replacement. It can do HTTP based transport and also TCP/IP based tranport, both secure or not secure, (you can plug in to WCF any serializing engine you want) and it's easier to define and maintain. So I don't think .NET Remoting have anything over WCF, maybe it helps you to go deep and low level, but why go the hard way?



来源:https://stackoverflow.com/questions/1703720/net-remoting-over-wcf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!