asp.net mvc2任务计划程序 [英] asp.net mvc2 task scheduler

查看:95
本文介绍了asp.net mvc2任务计划程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net mvc 2应用程序,我需要每天运行一次任务(调用WS,保存到db).建议的方法是什么?一件事,我有一种感觉,我想从Web应用程序中执行此任务.

I have an asp.net mvc 2 app, and I need to run a task (call WS, save into db) once a day. What is the suggested way for this? One thing, I have a feeling I would like to execute this task from within the webapp.

有人有什么建议吗?我正在考虑.net石英或常规的System.Timers.Timer?有人看到任何问题吗?

Does anyone have any suggestions: I was considering .net quartz or regular System.Timers.Timer? Does anyone see any problems?

还有其他更好的解决方案吗?

Any other better solutions?

非常感谢--MB

推荐答案

为什么要从Web应用程序运行它?您甚至无法知道webapp是否将在所需时间运行.我建议您查看 Windows服务

Why do you want to run this from the webapp? You have no way of even knowing if the webapp will be running at the required time. I would recommend you look at Windows Services

这篇关于asp.net mvc2任务计划程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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