Silverlight中的轮询服务 [英] Polling service in Silverlight

查看:82
本文介绍了Silverlight中的轮询服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如何使用WCF服务在Silverlight中开发轮询服务,它将使用数据库中的最新数据自动更新网格?

当我浏览一些博客时,发现可以使用"Dispatcher"来执行此操作.

请帮我建立这个.

谢谢.

Hello,

How to develop Polling service in Silverlight using WCF service and it will update grid automatically with latest data from database?

As i go through some of blogs found that you can do this using "Dispatcher".

Please help me to build this.

Thank you.

推荐答案

在WCF中,您可以使用异步模式"进行轮询服务,并且易于实现.您必须添加WCF方法. br/>
In WCF you could use the "asynchronous pattern" for polling service and it will easy to Implement.You have to add in your WCF method.
[OperationContract(UseAsyncPattern = true)]


这篇关于Silverlight中的轮询服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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