How to perform periodic work on an ASP.NET MVC website?

后端 未结 4 536
深忆病人
深忆病人 2020-12-06 01:04

Once a day, I want my ASP.NET MVC4 website, which may be running on multiple servers, to email a report to me. This seems like a pretty common thing to want to do, but I\'m

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 01:51

    You should not be doing this task from your web application as Phil Haack nicely explains it in his blog post.

    How is this sort of thing normally done?

    You could perform this task from a Windows Service or even a console application that is scheduled to run at regular intervals using the Windows Scheduler.

提交回复
热议问题