开发者

WCF service and stored proc to poll data Asynchronously

开发者 https://www.devze.com 2023-03-11 12:37 出处:网络
I basically have a Silverlight web application, I\'m busy implementing a WCF service which will call a stored proc in SQL Server and get the rows. However I need to poll this data every few seconds si

I basically have a Silverlight web application, I'm busy implementing a WCF service which will call a stored proc in SQL Server and get the rows. However I need to poll this data every few seconds since the data will be updating every second in the database.

Was wondering what is the best way to approach this:

  1. having a timer, which will call the service after certain duration and updating
  2. implementing the polling on the WCF service side? Which I'm not sure on how to approach that and if it is possible.

Any help will be much appreciated.

Cheers, Michell开发者_C百科e


You can try the option of calling the wcf service asynchronously from the client. Refer this msdn article. http://msdn.microsoft.com/en-us/library/ms730059.aspx

0

精彩评论

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