Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用动态端点来查找 WCF 服务。到目前为止,这很好用。但是,当服务位于不同的子网中时,将无法再找到它们。
我知道服务器的地址,但我不知道端口和确切的服务名称。
有没有办法使用 Discovery 来查找服务?
我相信您需要考虑使用托管发现,因为临时发现依赖于 UDP 多播,它不会跨子网路由:
http://msdn.microsoft.com/en-us/library/dd456791.aspx
我们能够让 WCF 发现跨网络工作。有关更多详细信息,请参阅此答案。