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:
- having a timer, which will call the service after certain duration and updating
- 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
精彩评论