开发者

Asynchronous Web Service in WPF

Iam developing WPF application and consume w开发者_高级运维eb service. Every 5 min I need to call web service and display data in WPF form. which one is better to use in web service (synchronous or Asynchronous). Plz hel me in this.


It sounds as if you need to handle user input and updates from the web service at the same time. If you call the web service on the same thread as the UI you will block the user from using the form.

If you move the call to the web service to an other thread that problem could be solved. Using an Asynchronous web service proxy does that for you.

Just make sure you do not block the user.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜