Browse Source

Update HangfireBackgroundWorkerBase.cs

pull/20295/head
liangshiwei 2 years ago
parent
commit
1d657d6b93
  1. 11
      framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerBase.cs

11
framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerBase.cs

@ -11,16 +11,9 @@ public abstract class HangfireBackgroundWorkerBase : BackgroundWorkerBase, IHang
public string CronExpression { get; set; } = default!;
public TimeZoneInfo? TimeZone { get; set; }
public TimeZoneInfo? TimeZone { get; set; } = TimeZoneInfo.Utc;
public string Queue { get; set; }
public string Queue { get; set; } = EnqueuedState.DefaultQueue;
public abstract Task DoWorkAsync(CancellationToken cancellationToken = default);
protected HangfireBackgroundWorkerBase()
{
TimeZone = TimeZoneInfo.Utc;
Queue = EnqueuedState.DefaultQueue;
TimeZone = TimeZoneInfo.Utc;
}
}

Loading…
Cancel
Save