我引用自MSDN:
application endpoint
An endpoint exposed by the application and that corresponds to a service contract implemented by the application.
有人可以为我解释一下这个定义吗?应用端点是否与 Visual Studio 创建的服务引用相同?
最佳答案
所有通信 WCF 服务都通过端点发生。它允许客户端访问 WCF 服务提供的功能。
每个端点由三个属性组成:
- 地址(地点)
- 绑定(bind)(如何)
- 契约(Contract)(内容)
端点也可以有一组指定本地实现细节的行为。 endpoints 概念同时存在于客户端和服务中: WCF 服务可以公开多个端点,并且客户端可以与具有多个端点的服务进行通信。
Can somebody please explain this definition for me? Is the application endpoint the same as the service reference created by the Visual Studio?
当您添加服务引用时,Visual Studio 将在您的应用程序中添加一个新的客户端端点(检查更新的配置文件)。但是,Visual Studio 将首先尝试下载元数据,以便列出地址的所有可用端点。
关于c# - WCF 应用端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18349889/