【发布时间】:2020-06-23 04:14:04
【问题描述】:
我正在尝试连接到我的 API。 我正在使用 SwaggerClient 对其进行调用,但是当我这样做时,我得到 System.PlatformNotSupportedException: Property AutomaticDecompression is not supported。 那么调用我的 API 以使其在 WASM 上运行的最佳方式是什么?
【问题讨论】:
-
我可以使用 var handler = new HttpClientHandler();没有 AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate 并访问 API,但之后整个应用程序冻结。