WCF代理和WCF服务对象之间有什么区别? [英] What is differnce between WCF Proxy and WCF service object ?

查看:97
本文介绍了WCF代理和WCF服务对象之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

详细来说,WCF代理对象与普通类对象和服务对象(实际WCF服务对象)之间有什么区别?

What is difference between the WCF proxy object and the normal class object and service object (actual WCF service object) in detail ? 

我们可以在WCF代理上执行的许多功能可以在类对象上执行.

As many of the fucnctionality which we can performed on class object we could not performed on WCF proxy.

 

推荐答案

这是一个很大的主题,但我们可以简单地看一下.代理,服务本质上是类,但它们是为特定目的而构建的.例如当您说WCF服务时,您将拥有诸如数据合同,服务合同,故障合同之类的结构 反正.代理类抽象了服务的通信模型,并消除了对客户开发人员的服务需求意识.当您说执行的功能.............

Its a huge subject but we can look at it briefly. Proxy, service are essentially classes but they are framed for specific purposes. e.g. when you say WCF service then you have constructs like data contract, service contracts, fault contracts which are classes any way. Proxy classes abstract the communication model of service and eliminates the need awareness of service to client developer.What you are referring to when you say that the "functionality performed.............

还请注意,类是对象的蓝图,除非您实例化该类,否则对象不会出现在图片中,因此不能同义使用它们.

Also please note that a class is blueprint of object and unless you instantiate class, object doesn't come into the picture so they can't be used synonymously.

希望这会有所帮助.


这篇关于WCF代理和WCF服务对象之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆