|
|
|
@ -32,7 +32,7 @@ namespace Volo.Abp.BackgroundWorkers.Quartz |
|
|
|
{ |
|
|
|
var options = context.ServiceProvider.GetService<IOptions<AbpBackgroundWorkerOptions>>().Value; |
|
|
|
var quartzBackgroundWorkerOptions = context.ServiceProvider.GetService<IOptions<AbpBackgroundWorkerQuartzOptions>>().Value; |
|
|
|
if (options.IsEnabled && quartzBackgroundWorkerOptions.IsAutoRegisterEnable) |
|
|
|
if (options.IsEnabled && quartzBackgroundWorkerOptions.IsAutoRegisterEnabled) |
|
|
|
{ |
|
|
|
var backgroundWorkerManager = context.ServiceProvider.GetService<IBackgroundWorkerManager>(); |
|
|
|
var works = context.ServiceProvider.GetServices<IQuartzBackgroundWorker>().Where(x=>x.AutoRegister); |
|
|
|
|