这是我的配置:
["quartz.jobStore.dataSource"] = "default",
["quartz.jobStore.tablePrefix"] = "QRTZ_",
["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.PostgreSQLDelegate, Quartz",
["quartz.dataSource.default.provider"] = "Npgsql",
["quartz.dataSource.default.connectionString"] = @"User ID=ttt;Password=xxx;Host=ttt.postgres;Port=5432;Database=ttt;"
例外:
Could not parse property 'dataSource' into correct data type: No writable property 'DataSource' found
一个多小时来我一直在尝试不同的东西,这些文档并没有真正的帮助(在示例前面很瘦),并且我试图通过Quartz.Net源代码进行挖掘,但是没有运气:/
答案 0 :(得分:0)
添加此内容似乎已解决 -我不是100%正常运行,但我已经走得更远了...
properties["quartz.scheduler.instanceName"] = "SonatribeScheduler";
properties["quartz.scheduler.instanceId"] = "instance_one";
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = "10";
properties["quartz.jobStore.misfireThreshold"] = "60000";
properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
properties["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz";
properties["quartz.jobStore.useProperties"] = "false";
properties["quartz.jobStore.dataSource"] = "default";
properties["quartz.jobStore.tablePrefix"] = "QRTZ_";