【发布时间】:2022-02-20 22:30:26
【问题描述】:
使用this answer 中的提示,我能够在将 .NET Framework 4.8 程序集转换为 .NET Standard 2.0 时包含常规 WCF 支持。但是,我的代码严重依赖服务发现。
我以蛮力的方式尝试了这些软件包:
System.ServiceModel.Duplex
System.ServiceModel.Federation
System.ServiceModel.Http
System.ServiceModel.NetTcp
System.ServiceModel.Primitives
System.ServiceModel.Security
System.ServiceModel.Syndication
...但它们都不包含支持的命名空间/类。
是否可以在我的 .NET Standard 2.0 程序集中包含服务发现支持?
【问题讨论】:
-
您可以查看此链接:System.ServiceModel Namespace
-
谢谢,但这是 .NET Framework 4.8 的文档。我需要 .NET Standard 2.0 的软件包。
-
对不起,我没有看清楚最后一个链接,这个链接是关于Http和NetTcp.NET Standard API Reference version 2.0
-
DiscoveryClient 是 .net framework only,因此您无法将所有内容都转换为 .net 标准。
-
是的,我刚刚discovered that。 | @magicandre1981
标签: wcf .net-standard .net-standard-2.0 service-discovery