Browse Source

Update PeriodicBackgroundWorkerBase's Timer_Elapsed method.

pull/6417/head
maliming 6 years ago
parent
commit
9407a4b041
  1. 3
      framework/src/Volo.Abp.BackgroundWorkers/Volo/Abp/BackgroundWorkers/PeriodicBackgroundWorkerBase.cs

3
framework/src/Volo.Abp.BackgroundWorkers/Volo/Abp/BackgroundWorkers/PeriodicBackgroundWorkerBase.cs

@ -43,12 +43,11 @@ namespace Volo.Abp.BackgroundWorkers
{
try
{
DoWork(new PeriodicBackgroundWorkerContext(scope.ServiceProvider));
}
catch (Exception ex)
{
scope.ServiceProvider
_ = scope.ServiceProvider
.GetRequiredService<IExceptionNotifier>()
.NotifyAsync(new ExceptionNotificationContext(ex));

Loading…
Cancel
Save