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();
转载于:https://www.cnblogs.com/liuhx1027/archive/2010/09/17/1829374.html