Polling Pattern for Silverlight 4 WCF Ria Services

非 Y 不嫁゛ 提交于 2019-12-06 03:29:43

Take a look at the WCF Duplex Service. It should solve your problem.

Can you make the service call take less time? If not, why not?

Typically when I've seen queries take this long, it either means the SQL running at the end isn't efficient enough, the SQL server has poor indexes, or the client is requesting far more data than they'll actually be able to use in a short period of time.

For example, instead of requesting 500 entities right away and showing a large list/DataGrid/whatever, why not request 10-50 at a time and have a paging UI that only requests the next batch when the user nedes it?

Take a look at signalr, it can run side by side with ria and it lets you push messages back to the client from the server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!