Leftyx / QuartzNetXmlJobs

rel. 1.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get all the jobs in the startup class on application start

Su-s opened this issue · comments

commented

Hi,
I'm working with a asp.net core 5.0 application and added quartz.net to schedule and run the user tasks.

The quartz scheduling is working in my application and I can schedule and trigger the scheduler according to the cron value. But when the asp application stops, the scheduled job stops forever and not restarting after the application back to onlline again

to check the existing job on restart the application i used the methodgetalljobs in program.cs but how can execute the method from startup class. im using a seperate class for the scheduler

image

only these added to my startup class. scheduler start and create job are written in custom class.