diff --git a/framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerBase.cs b/framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerBase.cs index f3f83eb563..0c1a5f3d26 100644 --- a/framework/src/Volo.Abp.BackgroundWorkers.Hangfire/Volo/Abp/BackgroundWorkers/Hangfire/HangfireBackgroundWorkerBase.cs +++ b/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; - } }