English 中文(简体)
执行MVC 3的信号仪
原标题:SignalR implementation for MVC 3

我想在我的 mvc 3 项目中使用信号R 。 我有像“ 基地” 或“ 捐赠” 这样的票单系统, 所以当给系统中任何用户分配的新票时, 应该通知这些用户。 旧的系统应该与 jquery 计时器合作, 每1分钟应该检查一次数据库, 看看是否有新票。

但当我读到关于信号R时,我实际上可以在服务器上触发某些触发客户端的东西。但是我不知道我是否可以在我的应用程序上执行。例如,我有一个业务层来做 db 操作。所以当我创建了一张新票时,我可以触发信号R 枢纽。有没有这方面的例子?

谢谢

最佳回答

使用SignalR(SignalR), 博客上也提到要执行类似你要求的东西。

< a href=>"http://www.wooohoo.uk.com/Blog/adding-real-time-statistics-to-survez-using-survez-signalr" rel=“no follow” > 添加实时统计数据,以添加实时统计数据

问题回答

是的,这确实是有可能的。请看题为“从一个枢纽外面的枢纽上广播”的栏目https://github.com/SignalR/SignalR/wiki/Hubs





相关问题
Using jquery to get a partial view and updating the UI

I need to render a partial view (returned from the controller) to show some customer summary details. This will need to happen when the user clicks on a button. In the the mean time the user can ...

MVC 2 / MVC 3 / MVC 4

MVC 2 我们可以轻松地创造领域。 现在,我的问题涉及nes地区(地区内)。

Asp.Net MVC 2 - Changing the PropertyValueRequired string

Using a resx file in the App_GlobalResources directory, I ve been able to change the default message for the PropertyValueInvalid string of the model validators. But it doesn t work to translate the ...

ASP.NET MVC 3 - What features do you want to see? [closed]

I know a bunch of people that are really enjoying the improvements that ASP.NET MVC 2 made over the first release. I have just started to migrate our MVC 1 project over and so far areas has totally ...

热门标签