问题描述
我正在为医疗保健域构建一个asp.net应用程序.我需要保留页面以反映实时更新.一种方法是每x分钟刷新一次页面,但是如果没有更新,则可能会增加负载.此外,这样做可能无法获得确切的实时数据.我想实现几乎完整的实时功能.
I am building an asp.net application for a health care domain. I need to keep the page to reflect real time updates. One way is to refresh the page after every x minutes but it may increase the load if there is no update. Moreover doing like this may not get the exact real time data. I want to achieve the almost complete real time functionality.How it can be done in ASP.NET C#..?
推荐答案
看看SignalR https://github.com/SignalR/SignalR 和 http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx 我认为这正是您所需要的.
Have a look at SignalR https://github.com/SignalR/SignalR and http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspxI think it is just what you need.
这篇关于如何在asp.net中构建实时系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!