Quartz.Net embedded into Asp.NET MVC2, not firing off jobs

前端 未结 1 1199
慢半拍i
慢半拍i 2021-01-22 16:32

I\'m trying to get Quartz.net working by embedding into my .Net MVC2 application. I know this is not ideal, but I\'m just trying to get it up and running before moving it over t

相关标签:
1条回答
  • 2021-01-22 17:34

    If Application_Start looks like that, then I reckon your scheduler variable is likely to be garbage collected as soon as that method finishes executing.

    I'd store a reference to the scheduler as a static variable in your HttpApplication class. This way, the reference hangs around for the duration of the process. A guess, but worth a shot.

    0 讨论(0)
提交回复
热议问题