我们可以终止ViewModel的服务呼叫吗 [英] Can we terminate a service call from ViewModel

查看:68
本文介绍了我们可以终止ViewModel的服务呼叫吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Silverlight应用程序中使用域服务类,其中数据库中的数据公开给ViewModel.现在,当用户选择取消数据检索操作时,我想终止服务调用,而不是从服务中隐藏结果.这可能吗?

提前致谢. . .

Hi All,

I am using a domain service class in my silverlight application, where data from database is exposed to ViewModel. Now i want to terminate the service call, when user chooses to cancel the data retrieval action, instead of hiding the results from service. Is this possible?

Thanks in advance. . .

推荐答案

您可以在此帖子中查看http://www.jeff.wilcox.name/2010/04/propertychangedbase-crossthread/ [
You can have a look on this post http://www.jeff.wilcox.name/2010/04/propertychangedbase-crossthread/[^]
This will guide you to handle your call.


这篇关于我们可以终止ViewModel的服务呼叫吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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