如何保持石英.net的调度程序存活?

编程入门 行业动态 更新时间:2024-10-10 07:31:44
本文介绍了如何保持石英的调度程序存活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在asp网站上使用石英,我在application_start方法中初始化了调度程序,并在application_end方法中关闭了,我的触发器每天都会触发,但是我发现如果没有一段时间请求,我的调度程序会自动关闭,所以我的背景工程不会被触发,有没有更好的方法可以使调度程序寿命更长,并且只有在服务器停止时才关闭?

I use quartz in my asp website, i initialize the scheduler in application_start method and shutdown in application_end method ,my trigger will fire everyday but I found that my scheduler will automatically shutdown if there are not request for a while ,so my background works will not triggered,are there any better way to keep the scheduler life long and only shutdown when the server stopped?

推荐答案

为了更好地共享知识:

有两个建议:

  • www.codeproject/Articles/12117/Simulate-a-Windows-Service-using-ASP-NET-to-run-sc
  • weblog.west-wind/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive
  • www.codeproject/Articles/12117/Simulate-a-Windows-Service-using-ASP-NET-to-run-sc
  • weblog.west-wind/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive
  • 更多推荐

    如何保持石英.net的调度程序存活?

    本文发布于:2023-11-25 20:54:40,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1631306.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:程序   石英   net

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!