This maintenance release makes behavior of AsyncLocal values in synchronous methods to be the same as in the asynchronous ones, fixes rare CultureInfo-related differences appeared in 1.8.15 version due to caching, and resolves problems with the “Retries” page.
Hangfire.Core
-
Added –
DashboardOptions.ServerPossiblyAbortedThresholdto configure a custom threshold for “possibly aborted” warnings. - Fixed – Expired jobs are still shown on the “Retries” page in some cases.
-
Fixed – Issues with
CultureInfo-related differences after upgrading to 1.8.15–1.8.17. -
Fixed – Don’t leak
AsyncLocalvalues from synchronous background job methods. -
Fixed – Don’t throw an exception when passing the
Job.Argsproperty to theJobclass’ constructor. - Project – Make the lock file usable for both .NET 8.0 and .NET 9.0 builds.
-
Project – Make code generation for
cshtmlfiles working on newer platforms.
Hangfire.AspNetCore
-
Fixed – Swallow possible
ObjectDisposedExceptionin theStopAsyncmethod. -
Fixed – Avoid
NullReferenceExceptionwhenLocalIpAddressorRemoteIpAddressis null.
by