ASP.NET MVC 3实时事件。 [英] ASP.NET MVC 3 real time events.

查看:143
本文介绍了ASP.NET MVC 3实时事件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找关于asp.net的MVC的实时事件显示和处理3支持的建议。典型的情况是启动,关机,软复位,缓存完整等事件之后,在服务器上发出,并在应用布劳尔立即显示,近实时的。

I'm looking for advice regarding asp.net mvc 3 support for real time events display and handling. The typical scenario would be events like startup,shutdown, soft-reset, cache complete etc, issued on the the server and displayed immediately in the brower app, in near real time.

什么是典型的机制,以支持在asp.net MVC 3实时的事件是什么?是否有类似的WPF事件处理的监听机制,或者我需要轮询他们使用AJAX。

What is the typical mechanism to support real time events in asp.net mvc 3? Is there a listener mechanism similar to WPF event handing, or would I need to poll for them using AJAX.

我不打算使用任何外部或第三方应用程序pary处理事件,例如像推杆。

I'm not planning to use any external or third pary applications to handle the events, like e.g. Pusher.

鲍勃。

推荐答案

我不知道任何内置监听机制类似于WPF事件处理。

I am unaware of any built-in listener mechanism similar to WPF event handling.

在过去,我已经受够了Ajax的投票成功。我实现了一个线程安全的基于队列的的TraceListener 其发生时,我会用它来记录事件,并在投票行动出队所有的备份跟踪日志。

In the past, I've had success with Ajax-polling. I implemented a thread-safe queue-based TraceListener which I would use to log events when they occurred, and on the poll action dequeue all of the backed-up trace logs.

这篇关于ASP.NET MVC 3实时事件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆