从Quartz.Net 1.x迁移到2.x时,我是否必须更改调度程序的配置和启动方式?

时间:2013-02-12 23:32:05

标签: quartz.net quartz.net-2.0

以下是我在1.x中配置和启动Quartz.Net调度程序的方法:

properties["quartz.scheduler.instanceName"] = instanceName;
properties["quartz.scheduler.instanceId"] = "AUTO";
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = threadCount;
properties["quartz.threadPool.threadPriority"] = "Normal";
properties["quartz.jobStore.misfireThreshold"] = "60000";
properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
properties["quartz.jobStore.useProperties"] = "true";
properties["quartz.jobStore.dataSource"] = "default";
properties["quartz.jobStore.tablePrefix"] = tablePrefix;
properties["quartz.jobStore.clustered"] = "false";
properties["quartz.jobStore.lockHandler.type"] = "Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz";
properties["quartz.dataSource.default.connectionString"] = connectionString;
properties["quartz.dataSource.default.provider"] = "SqlServer-20";
schedFact = new StdSchedulerFactory(properties);
svcScheduler = schedFact.GetScheduler();
svcScheduler.Start();

迁移到2.x后,我必须在这里更改一些内容吗?

最重要的是quartz.dataSource.default.provider对于SQL Server仍然是SqlServer-20还是做了一些改变?

1 个答案:

答案 0 :(得分:2)

Quartz.net 2.x的配置中没有任何改变。
您可以找到一些有用的信息here

是的,如果要使用MS Sql Server,仍然必须使用SqlServer-20

有关数据库提供程序的完整列表,请查看here

相关问题