2016-01-27 97 views
3

我苦苦寻找的应用程序终结点和WCFWCF中的基础结构和应用程序端点有什么区别?

MSDN的基础设施端点之间的差异的外行的定义定义的区别如下:

应用程序终结点

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

基础设施端点

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. 

后者的一个示例是通知客户端端点如何处理特定类型绑定的端点吗?请有人提供一个不太抽象的场景?

回答

4

安全基础设施端点说服务的事情。例如。实施IMetaDataExchange的东西。

对Windows Communication Foundation(WCF)服务进行编程时, 对发布有关该服务的元数据很有用。例如,元数据 可以是描述服务使用的所有方法和数据类型的Web服务描述语言(WSDL)文档。 返回有关WCF服务的元数据可让服务的客户轻松创建服务的客户端。

凡作为应用程序终结点做一些事情,e.g你在WCF注释与Operation Contract什么。

+0

谢谢!这使它变直了! –

相关问题