调度Asp.net.What是最好的解决办法? [英] Scheduling in Asp.net.What is best solution?

查看:152
本文介绍了调度Asp.net.What是最好的解决办法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Asp.net调度

I want to Scheduling in Asp.net

我有以下选项来实现此


  1. 要写入SQLServer的作业(我不想做this.Dont要到外面的.Net环境)

  1. To write SQLServer JOB(I dont want to do this.Dont want to go outside of .Net environment)

第二个选项是我会写Windows服务,该窗口服务将调用asp.net
  Web服务则此WebService调用asp.net的方法结果
  (我也不需要做到这一点,因为我的托管服务提供商可能不会允许我安装
  窗口服务)

Second option is I will write windows service and this window service will call asp.net webservice then this webservice calls asp.net method
(I also dont need to do this because my hosting provider might not be allow me to install window service)

第三个选项是我叫我的调度方法Application_Start事件在全局类
  (缺点是,Web服务器将杀死线程任何时候)

Third option is I call my scheduling method in Application_Start event in global class (Drawback is, webserver will kill thread any time )

要召调度code在首页的Page_Load事件(可能是没有人访问我的网站小时
   ,同时页面的执行速度可能很缓慢,由于调度code)

To call Scheduling Code in Page_Load event of Home Page(Might be nobody visits my website for hours ,Also page execution might be slow due to scheduling code)

我也发现了一些,在给定的时间间隔调用你的页面的在线服务,有些是下面

I also found some online services that calls your page at given interval,some are given below

http://www.cronservice.co.uk/new/
HTTP://scheduler.$c$ceffects.com

http://www.cronservice.co.uk/new/ http://scheduler.codeeffects.com

任何人给我这个投注的解决方案,并解释为什么投注者?

由于提前

推荐答案

在ASP.NET应用程序是不执行调度正确的地方。我建议创建一个服务或在很短的间隔运行的计划任务。

The ASP.NET application isn't the right place to implement scheduling. I would suggest creating a service or a scheduled task that runs in short intervals.

这篇关于调度Asp.net.What是最好的解决办法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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