Browse Source

Merge pull request #11061 from abpframework/liangshiwie/patch

pull/11062/head
maliming 5 years ago
committed by GitHub
parent
commit
8ceca64ca0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerManager.cs

2
framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerManager.cs

@ -42,7 +42,7 @@ namespace Volo.Abp.BackgroundWorkers.Hangfire
if (worker is AsyncPeriodicBackgroundWorkerBase or PeriodicBackgroundWorkerBase)
{
var timer = (AbpTimer) worker.GetType()
var timer = (AbpAsyncTimer) worker.GetType()
.GetProperty("Timer", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(worker);
period = timer?.Period;
}

Loading…
Cancel
Save