gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 15:22:53 26 4
gpt4 key购买 nike

我正在努力寻找外行人对 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.

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

最佳答案

基础结构端点 说明有关服务的事情。例如。实现 IMetaDataExchange 的东西.

When programming Windows Communication Foundation (WCF) services, it is useful to publish metadata about the service. 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. Returning metadata about an WCF service allows consumers of a service to easily create clients for the service.

应用程序端点做某事时,例如您在 WCF 中使用 Operation Contract 注释的内容。

关于c# - WCF 中的基础结构和应用程序端点之间有什么区别(通俗地说)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35049846/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com