什么是WCF代理和它们是什么好处? [英] What are WCF Proxies and what are they good for?

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

问题描述

我最近一直教育自己有关WCF和使用WCF我甚至写了一些生产服务。但我从来没有真正看过太多为WCF,直到最近。

I have recently been educating myself about WCF and I have even written some production services using WCF. But I have never really looked too much into WCF until recently.

我知道代理设计模式的想法。我也知道使用与ASMX Web服务代理的。但我有一个很难理解什么是WCF代理,以及它是如何被使用。我已经看过了彻底的MSDN文档有关的WCF,但我仍然没有把握使用代理服务器与WCF服务的大局。

I am aware of the idea of the "proxy" design pattern. I am also aware of the use of a proxy with ASMX web services. But I am having a hard time understanding what a WCF proxy is and how it is used. I have looked thoroughly over the MSDN documentation about WCF, but I am still not grasping the big picture of the use of proxies with WCF services.

推荐答案

代理是进程外的服务的过程中的再presentative。你叫代理(很简单),其中设置了沟通渠道等,并举行会谈,以远程服务(这是很难)。

A proxy is an in-process representative of an out-of-process service. You call the proxy (which is easy), which setups up the communication channels etc. and talks to the remote service (which is hard).

另请参见<一个href="http://msdn.microsoft.com/en-us/library/ms730144.aspx">http://msdn.microsoft.com/en-us/library/ms730144.aspx.

这篇关于什么是WCF代理和它们是什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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