简体   繁体   English

WCF中的基础架构和应用程序端点之间有什么区别(使用非专业术语)?

[英]What is the difference between Infrastructure and application endpoints in WCF (in lay terms)?

I'm struggling to find a Layman's definition of the difference between an Application Endpoint and an Infrastructure Endpoint in WCF 我很难找到Layman对WCF中Application Endpoint和Infrastructure Endpoint之间差异的定义

MSDN defines the distinction as follows: MSDN定义如下区别:

application endpoint 应用端点

An endpoint exposed by the application and that corresponds to a service contract implemented by the application.

infrastructure endpoint 基础设施端点

An endpoint that is exposed by the infrastructure to facilitate functionality that is needed or provided by the service that does not relate to a service contract. For example, a service might have an infrastructure endpoint that provides metadata information.

Would an example of the latter be an endpoint that informed a client endpoint how to handle paticular kinds of Bindings? 后者的一个例子是一个端点,它通知客户端端点如何处理特定类型的绑定? Please could someone provide a less abstract scenario? 有人可以提供一个不那么抽象的场景吗?

An Infrastructure Endpoint says things about the service. Infrastructure Endpoint说明了有关服务的事情。 Eg something that implements IMetaDataExchange . 例如,实现IMetaDataExchange的东西。

When programming Windows Communication Foundation (WCF) services, it is useful to publish metadata about the service. 编写Windows Communication Foundation(WCF)服务时,发布有关服务的元数据很有用。 For example, metadata can be a Web Services Description Language (WSDL) document that describes all of the methods and data types employed by a service. 例如,元数据可以是Web服务描述语言(WSDL)文档,该文档描述服务使用的所有方法和数据类型。 Returning metadata about an WCF service allows consumers of a service to easily create clients for the service. 返回关于WCF服务的元数据允许服务的消费者容易地为该服务创建客户端。

Where as an Application Endpoint does something, eg what you annotate in WCF with Operation Contract . 应用程序端点执行某些操作的位置,例如您在WCF中使用Operation Contract注释的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM