We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4fa513 commit 66aeea8Copy full SHA for 66aeea8
src/Hangfire.RecurringJobExtensions/ExtendedDataJobFilter.cs
@@ -45,7 +45,9 @@ public void OnPerforming(PerformingContext filterContext)
45
46
var jobDataKey = $"recurringjob-info-{jobInfo.ToString()}";
47
48
- filterContext.Items[jobDataKey] = jobInfo.ExtendedData ?? new Dictionary<string, object>();
+ if (jobInfo.ExtendedData == null) jobInfo.ExtendedData = new Dictionary<string, object>();
49
+
50
+ filterContext.Items[jobDataKey] = jobInfo.ExtendedData;
51
}
52
/// <summary>
53
/// Called after the performance of the job.
0 commit comments