Windows Phone C# 中的多线程? [英] Multi threading in windows phone C#?
问题描述
windows phone C#中的多线程?
Multi threading in windows phone C# ?
当我调用 wcf 服务时如何进行多线程处理.一个线程应该调用服务,一个线程应该显示处理.
How to do multithreading when i call a wcf service . One thread should call service and one thread should show processing.
推荐答案
我从来没有为 Windows Phone 编写过程序,但我对 C# 有一定的经验,谷歌快速搜索显示 Windows Phone 支持 BackgroundWorkers.我建议将其用于耗时的任务,您甚至可以获得进度更新.看看这个例子:
I've never programmed for windows phone but I have a fair bit of experience with c# and a quick google search shows windows phone has support for BackgroundWorkers. I would suggest using that for your time consuming task, you can even get a progress update. Check this out for an example:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/cc221403(v=vs.105).aspx
这是我从 WPF 应用程序调用 WCF 服务时使用的内容
It's what I use when calling a WCF service from a WPF app
这篇关于Windows Phone C# 中的多线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!