![](/img/trans.png)
[英]C# - What is the most efficient way to build a string based on a set of boolean values
[英]What is the most efficient way to stream values to clients in c#
我想知道http://www.eztrader.com/Trading.aspx这样的网站如何向用户传递价格。 我知道我可以设置一个带有超时的ajax调用,以每2或3秒从服务器请求价格,但是这样做有更有效的方法吗? 我在后端使用.net mvc 4.0。
您可以尝试SignalR 。 这是一个为此类实时功能设计的.NET库。
谢谢,对@Matthew Flaschen
感谢您的链接,我也进行了搜索,发现它更有趣
http://www.asp.net/signalr/overview/introduction/what-is-signalr
http://blog.pluralsight.com/2013/03/20/new-course-introducing-asp-net-signalr-push-services-with-hubs/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.