ASP.NET MVC:如何触发日期后通知事件?日期、事件、通知、ASP

由网友(心,你有多疼)分享简介:我想使用ASP.NET MVC 3构筑规划师的Web应用程序。I'm trying to build a planner web app using ASP.NET MVC 3.一个问题,我不知道是如何自动触发一个事件(发送邮件等等)时,时间是一个位置?One of the problem I don't kno...

我想使用ASP.NET MVC 3构筑规划师的Web应用程序。

I'm trying to build a planner web app using ASP.NET MVC 3.

一个问题,我不知道是如何自动触发一个事件(发送邮件等等)时,时间是一个位置?

One of the problem I don't know is how to automatically trigger an event(send mail whatever) when the time is one that spot?

谁能帮忙?谢谢你。

推荐答案

我个人不会让Web应用程序处理的。相反,我有一个在后台运行一个服务或使用Windows调度运行某些应用程序每x分钟/小时。

Personally I would not make the web app handle that. Instead, I'd have a service that runs in the background or use the Windows Schedule to run certain application every x min/hour.

但随着ASP.NET,你可以启动一个后台线程调用一些功能每隔x时间。

But with ASP.NET, you could start a background thread that calls some function every x time.

下面是更多的是: http://flimflan.com/blog/SafelyRunningBackgroundThreadsInASPNET20.aspx

我希望这可以帮助您在正确的方向。

I hope this helps you in the right direction.

阅读全文

相关推荐

最新文章