quartz.net-2.0

How do I create a Quartz.NET’s job requiring injection with autofac

邮差的信 提交于 2019-12-03 17:03:08
问题 I am trying to get Quartz.net (2.1.2) to work with an IoC container (autofac), as I have services I need to use in the scheduled jobs. I have found similar posts on the subject, but I can't seem to find one with a specific registration example for autofac. The following post deals with the same issue I am having: How to schedule task using Quartz.net 2.0? However, the part I believe I am missing is when the answer says "And don't forget to register the job in the IoC container". I am unsure

How do I create a Quartz.NET’s job requiring injection with autofac

旧城冷巷雨未停 提交于 2019-12-03 06:12:49
I am trying to get Quartz.net (2.1.2) to work with an IoC container (autofac), as I have services I need to use in the scheduled jobs. I have found similar posts on the subject, but I can't seem to find one with a specific registration example for autofac. The following post deals with the same issue I am having: How to schedule task using Quartz.net 2.0? However, the part I believe I am missing is when the answer says "And don't forget to register the job in the IoC container". I am unsure how to do this exactly, as everything I have tried so far hasn't worked. In the following example, the

How to send argument to class in Quartz.Net

两盒软妹~` 提交于 2019-12-02 22:33:10
I'm using Quartz.Net (version 2) for running a method in a class every day at 8:00 and 20:00 (IntervalInHours = 12) Everything is OK since I used the same job and triggers as the tutorials on Quartz.Net, but I need to pass some arguments in the class and run the method bases on those arguments. Can any one help me how I can use arguments while using Quartz.Net? You can use JobDataMap jobDetail.JobDataMap["jobSays"] = "Hello World!"; jobDetail.JobDataMap["myFloatValue"] = 3.141f; jobDetail.JobDataMap["myStateData"] = new ArrayList(); public class DumbJob : IJob { public void Execute

RAMJobStore (quartz_jobs.xml) to AdoJobStore Data Move

a 夏天 提交于 2019-12-01 13:02:37
My team and I are trying to figure out a way to "load up" our Sql Server database with the Quartz.NET schema installed. <add key="quartz.dataSource.default.provider" value="SqlServer-20"/> For demo's, we've been storing our job-setups in .xml (quartz_jobs.xml). My question is : Is there a way to "load up" the scheduling data from .xml (quartz_jobs.xml) (Quartz.Simpl.RAMJobStore), and then "save it off" to a AdoJobStore (Quartz.Impl.AdoJobStore.JobStoreTX) ? The reason is that our "start up" data could be easily written placed in the .xml. Right now, the only way I see putting jobs into a

RAMJobStore (quartz_jobs.xml) to AdoJobStore Data Move

旧巷老猫 提交于 2019-12-01 10:01:49
问题 My team and I are trying to figure out a way to "load up" our Sql Server database with the Quartz.NET schema installed. <add key="quartz.dataSource.default.provider" value="SqlServer-20"/> For demo's, we've been storing our job-setups in .xml (quartz_jobs.xml). My question is : Is there a way to "load up" the scheduling data from .xml (quartz_jobs.xml) (Quartz.Simpl.RAMJobStore), and then "save it off" to a AdoJobStore (Quartz.Impl.AdoJobStore.JobStoreTX) ? The reason is that our "start up"