Windows 10 IoT - Supported bindings

时间秒杀一切 提交于 2019-12-13 19:00:28

问题


According to

https://msdn.microsoft.com/en-us/library/system.servicemodel

the Windows Universal Platform supports the NetHttpBinding. In Visual Studio, I can develop a simple WCF client using this binding, without errors. I can use the NetHttpBinding class of the ServerModel namespace. When I deploy the client to a Raspberry Pi 2, a

PlatformNotSupportedException

occurs.

Which WCF bindings are really supported by Windows 10 IoT?


回答1:


There is almost no information available public about WCF client profile for windows 10 IoT, but I think it's very easily for you to test them. It's still a prerelease preview, so it's really possible.

To move forward, I think you can use HttpClient in System.Net.Http namespace to consume restful service. check Jeff Sanders's blog.



来源:https://stackoverflow.com/questions/33151110/windows-10-iot-supported-bindings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!