WCF 中的基础结构和应用程序终结点之间有什么区别(通俗地说)

本文关键字:区别 什么 之间 结点 结构 应用程序 WCF | 更新日期: 2023-09-27 18:32:21

我正在努力找到 WCF 中应用程序终结点和基础结构终结点之间区别的外行定义

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.

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

WCF 中的基础结构和应用程序终结点之间有什么区别(通俗地说)

基础结构终结点说明了有关服务的信息。 例如,实现IMetaDataExchange的东西。

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

作为应用程序终结点执行某些操作的位置,例如,在 WCF 中使用 Operation Contract 注释的内容。