开发者

does SoapClient run on UI thread just like WebClient?

开发者 https://www.devze.com 2023-03-08 05:32 出处:网络
I have this confusion that makes me uncertain about the origin of performance lag in my Windows Phone 7 application.

I have this confusion that makes me uncertain about the origin of performance lag in my Windows Phone 7 application.

We all know WebClient runs on UI thread and is evil and should be avoided. But I have a webservice which is reference using visual studio so a class like XXXSoapClient : ClientBase is generated for that. Now the question is:

"Is this running on UI thread as well?"

--开发者_如何学运维 Assuming the answer is yes, what is the workaround? Calling complex webservice methods using URL and HttpWebRequest is so labour-intensive!

Cheers.

P.S. Good news is that from "Mango" issue with WebClient will be resolved and it will run on "Originating thread".


WebClient will run on Originating Thread for Windows Phone 7.1/7.5

0

精彩评论

暂无评论...
验证码 换一张
取 消