Add Quartz.net work without starting the scheduler

Is there a way to add jobs to Quartz.Net in the job store without starting a scheduler instance?

+3
source share
2 answers

To create a control instance (a scheduler that is used only to set up a task and run, for example, for websites), you can change the thread pool to ZeroSizeThreadPool, which allows you to run the scheduler without fear that it will actually perform any tasks.

You should always use the scheduler interface instead of directly accessing the database.

+2
source

, . , , , .

0

Source: https://habr.com/ru/post/1742460/


All Articles