Hi,
We use Hangfire with SQL Server but are considering paying for Hangfire.Pro.Redis.
Currently, we sometimes open a .NET TransactionScope around database operations and Hangfire enqueues. If the transaction is rolled back, this also rolls back the Hangfire database operations.
As we consider paying for Hangfire.Pro.Redis, I’m interested to know if Hangfire with Redis participates in transaction scopes created outside the call to queue a Hangfire job. Specifically, if a TransactionScope rolls back, will it also roll back the Redis operations performed by Hangfire?
If not, are there any suggested workarounds to prevent the Hangfire job from running or continuing if the TransactionScope at the time of enqueuing rolls back?
Thanks!