开发者

schedulercontext quartz.net

开发者 https://www.devze.com 2023-01-11 23:16 出处:网络
I have several jobs scheduled with Quartz.net.I have the same job detail being repeated for every job like the email address, user id....开发者_运维知识库

I have several jobs scheduled with Quartz.net. I have the same job detail being repeated for every job like the email address, user id....开发者_运维知识库 Each job may have a different trigger so I cannot really put the job detail in each trigger.

Is there some other place like the schedulingcontext where I can put the common information once instead of repeating for each job? If yes, can someone please provide a sample of the xml that will be used by quartz.

Pratik


The information can be stored only on trigger and job detail level and later it can be accessed as combined map in the job. If you want global information like this I would advice to use .NET configuration section and abstract it with you you configuration facade.

0

精彩评论

暂无评论...
验证码 换一张
取 消