Browse Source
Merge pull request #1177 from colinin/fix-quartz-cfg-prefix
fix(tasks): Fix the quartz configuration prefix
pull/1211/head
yx lin
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
aspnet-core/modules/task-management/LINGYUN.Abp.Quartz.SqlInstaller/LINGYUN/Abp/Quartz/SqlInstaller/AbpQuartzSqlInstallerModule.cs
|
|
@ -38,7 +38,7 @@ public class AbpQuartzSqlInstallerModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
var configuration = context.ServiceProvider.GetRequiredService<IConfiguration>(); |
|
|
var configuration = context.ServiceProvider.GetRequiredService<IConfiguration>(); |
|
|
if (configuration.GetValue("Quartz:UsePersistentStore", false) && |
|
|
if (configuration.GetValue("Quartz:UsePersistentStore", false) && |
|
|
!configuration[StdSchedulerFactory.PropertyJobStoreType].IsNullOrWhiteSpace()) |
|
|
!configuration[$"Quartz:Properties:{StdSchedulerFactory.PropertyJobStoreType}"].IsNullOrWhiteSpace()) |
|
|
{ |
|
|
{ |
|
|
// 初始化 Quartz 数据库
|
|
|
// 初始化 Quartz 数据库
|
|
|
await context.ServiceProvider |
|
|
await context.ServiceProvider |
|
|
|