Quartz.net 读取配置文件中的Job方法

ISchedulerFactory schedFactory = new StdSchedulerFactory();

sched = schedFactory.GetScheduler();



//读取配置文件中配置的Job和Trigger信息到Scheduler中

JobSchedulingDataProcessor processor = new JobSchedulingDataProcessor(true, true);

processor.ProcessFile(“Quartz_job.xml”);

processor.ScheduleJobs(new Hashtable(), sched, false);



//开始执行调度任务

sched.Start();

你可能感兴趣的:(quartz)