Windows 10 IoT - 支持的绑定 [英] Windows 10 IoT - Supported bindings

查看:62
本文介绍了Windows 10 IoT - 支持的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据

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

Windows 通用平台支持 NetHttpBinding.在 Visual Studio 中,我可以使用此绑定开发一个简单的 WCF 客户端,而不会出错.我可以使用 ServerModel 命名空间的 NetHttpBinding 类.当我将客户端部署到 Raspberry Pi 2 时,

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

PlatformNotSupportedException

发生.

Windows 10 IoT 真正支持哪些 WCF 绑定?

Which WCF bindings are really supported by Windows 10 IoT?

推荐答案

几乎没有关于 Windows 10 IoT 的 WCF 客户端配置文件的公开信息,但我认为您可以很容易地测试它们.它仍然是一个预发布预览,所以它真的有可能.

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.

继续前进,我认为您可以使用 System.Net.Http 命名空间中的 HttpClient 来使用 Restful 服务.检查 杰夫·桑德斯的博客.

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

这篇关于Windows 10 IoT - 支持的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆