Browse Source
Update QuartzBackgroundWorkerManager.cs
pull/11192/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.BackgroundWorkers.Quartz/Volo/Abp/BackgroundWorkers/Quartz/QuartzBackgroundWorkerManager.cs
|
|
@ -34,9 +34,9 @@ public class QuartzBackgroundWorkerManager : IBackgroundWorkerManager, ISingleto |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public virtual void Add(IBackgroundWorker worker) |
|
|
public virtual async Task AddAsync(IBackgroundWorker worker) |
|
|
{ |
|
|
{ |
|
|
AsyncHelper.RunSync(() => ReScheduleJobAsync(worker)); |
|
|
await ReScheduleJobAsync(worker); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected virtual async Task ReScheduleJobAsync(IBackgroundWorker worker) |
|
|
protected virtual async Task ReScheduleJobAsync(IBackgroundWorker worker) |
|
|
|