.net 简单来说,WCF 是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42740/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is WCF in simple terms?
提问by Brian
What is WCF in simple terms?
简单来说,WCF 是什么?
It's hard to distill the meaning from the Wikipedia page.
很难从维基百科页面中提取含义。
采纳答案by swilliams
WCF - Windows Communication Framework- is Microsoft's framework to make inter-process communication easier. It let's you do this communication through various means, plain old asmx web services, Remoting, MS Message Queuing, and a couple more.
WCF - Windows 通信框架- 是微软的框架,使进程间通信更容易。它让您可以通过各种方式进行这种通信,包括普通的旧 asmx Web 服务、远程处理、MS 消息队列等等。
It let's you talk with other .NET apps, or non-Microsoft technologies (like J2EE). It's extensible enough to allow for newer stuff, like REST too (I don't think REST is built-in).
它让您可以与其他 .NET 应用程序或非 Microsoft 技术(如 J2EE)进行交流。它的可扩展性足以允许更新的东西,比如 REST(我不认为 REST 是内置的)。
回答by Mark Cidade
WCF allows you to create "services" without specifying that it's a Windows service or a Web service, or which protocols are used to communicate with it or how the data is serialized.
WCF 允许您创建“服务”,而无需指定它是 Windows 服务还是 Web 服务,或者使用哪些协议与之通信或数据如何序列化。
All those details may be specified externally, either programmatically in a service host or via the config file.
所有这些细节都可以在外部指定,可以在服务主机中以编程方式或通过配置文件指定。
回答by Anton Lyhin
I would recommed you to read about Indigo (the first WCF name). This is the case when an old article can explain the definition better than wikipedia.
我建议您阅读有关 Indigo(第一个 WCF 名称)的信息。当一篇旧文章可以比维基百科更好地解释定义时,就是这种情况。
Here is the complete article.
这是完整的文章。
"Indigo," Microsoft's unified programming model for building service-orientedapplications.
“Indigo”,微软用于构建面向服务的应用程序的统一编程模型 。
But what does "service-oriented" mean?
但是“面向服务”是什么意思?
Choosing the best abstractions for building software is an ongoing process. Objects are the dominant approach today for building an application's business logic, but modeling application-to-application communication using objects hasn't been as successful. A betterapproach is to explicitly model interactions between discrete chunksof software as services.
为构建软件选择最佳抽象是一个持续的过程。对象是当今构建应用程序业务逻辑的主要方法,但使用对象对应用程序到应用程序的通信进行建模并没有那么成功。更好的方法是将离散的软件块之间的交互显式建模为服务。
Plenty of support already (2005) exists for building object-oriented applications, but thinking of services as a fundamental software building blockis a more recent idea. Because of this, technologies explicitly designed to create service-oriented applications haven't been widely available.
已经(2005 年)为构建面向对象的应用程序提供了大量支持,但将服务视为基本软件构建块是一个较新的想法。因此,明确设计用于创建面向服务的应用程序的技术尚未广泛使用。
1. Indigo is also a combination of 5 techonologies.
1. Indigo 也是 5 种技术的结合。
All of these options had value, yet the diversity was certainly confusing to developers. Why have so many choices? A better solution would be to have one technology that addresses all of these problems. That is WCF.
所有这些选项都有价值,但多样性肯定会让开发人员感到困惑。为什么有这么多选择?更好的解决方案是采用一种技术来解决所有这些问题。那就是WCF。
2. Interoperability with Non-Microsoft Applications
2. 与非微软应用程序的互操作性
Making life easier for Windows developers by unifying disparate technologies is a good thing. But with the universal agreement among vendors on Web services, the long-standing problem of application interoperability can also be solved. (example is communication of .NET windows application with Java application on Linux or other operating systems).
通过统一不同的技术使 Windows 开发人员的生活更轻松是一件好事。但随着供应商之间对 Web 服务的普遍协议,应用互操作性的长期问题也可以得到解决。(示例是 .NET Windows 应用程序与 Linux 或其他操作系统上的 Java 应用程序的通信)。
回答by aku
WCF stands for Windows Communication Foundation. It's Microsoft's attempt to sort out and simplify network programming. It provides an easy to use level of abstraction over different communication protocols and transportation methods. It allows you to concentrate more on whatyou want to implement rather than thinking on howto implement it. Read Microsoft's WCF FAQfor more info.
WCF 代表 Windows 通信基础。这是微软整理和简化网络编程的尝试。它为不同的通信协议和传输方法提供了一个易于使用的抽象级别。它可以让你更专注于什么,你想要实现,而不是思考如何实现它。阅读 Microsoft 的WCF 常见问题解答以获取更多信息。
回答by Lamar
WCF is Microsoft's new .NET do-all extensible communications framework meant to replace functionality previously available in DCOM, .NET Remotingand ASMX web services.
WCF 是 Microsoft 新的 .NET 全能可扩展通信框架,旨在替换以前在DCOM、.NET Remoting和 ASMX Web 服务中可用的功能。


