c# - Quartz.NET 2.6 - Multiple Triggers Same Class Library -


i don't know if possible in quartz.net developing class library registered in quartz.net crontrigger. class library has 2 functions:

  1. it read table in sql server db named dbx if triggergroup equal value "internal". should occur every 1 minute.

  2. it read table in sql server db named dby if triggergroup equal value "external". should occur every mon-fri 8am 5pm.

i created 2 jobs (2 records appeared @ jobs_detail table) , 2 triggers (2 records appeared @ triggers , cron_triggers table respectively) different schedules , corresponding triggergroup associated pointing same dll.

what happen when started scheduler, though have different trigger names , job names, "internal" job firing "external" job though not supposed fired unil mon-fri 8 5pm.

is there way accomplish without need of create 2 classes has same code except fact when going read repository when choose 1 db or based on "internal" or "external" parameter?

i solved creating new vs.net solution, linked other projects , implemented execute method solution. compilation created 2 different dlls same code can register them separately.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -