2

以下是我在 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.providerSQL Server 还是SqlServer-20那里有什么改变?

4

1 回答 1

2

Quartz.net 2.x 的配置并没有真正改变。您可以在这里
找到一些有用的信息。

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

有关 db 提供程序的完整列表,请查看此处

于 2013-02-13T09:42:47.487 回答