[英]Getting string from WCF service
I want to get the string generated by the WCF service, both synchronously and asynchronously. 我想同步和异步获取WCF服务生成的字符串。 I know that with the bitmap, for instance, it's a piece of cake - you can add the event handler to BitmapImage on eg IsDownloaded or something. 我知道,例如,使用位图是小菜一碟-您可以将事件处理程序添加到例如IsDownloaded之类的BitmapImage上。 How about strings? 字符串呢? How can I achieve that? 我该如何实现? Assume that I want to use URi for calling the WCF service. 假设我要使用URi调用WCF服务。
What is the best approach for that? 最好的方法是什么?
Thanks in advance for the reply! 预先感谢您的答复!
Cheers 干杯
考虑使用来自MSDN的默认消息合同示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.