Skip to content

Fix: Hangfre backward compatibility with 0.x#1129

Merged
rasmus merged 4 commits intodevelop-v1from
handfire-bug-compatibility
Oct 11, 2025
Merged

Fix: Hangfre backward compatibility with 0.x#1129
rasmus merged 4 commits intodevelop-v1from
handfire-bug-compatibility

Conversation

@rasmus
Copy link
Member

@rasmus rasmus commented Oct 11, 2025

Fixes #1109

Copilot AI review requested due to automatic review settings October 11, 2025 14:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Restore backward compatibility for Hangfire jobs enqueued with EventFlow.Hangfire 0.x by reintroducing obsolete overloads that forward to the current job runner API.

  • Add two obsolete ExecuteAsync overloads to IHangfireJobRunner and HangfireJobRunner that match the 0.x signatures.
  • Provide tests to verify legacy signatures exist and delegate to the modern implementation.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
Source/EventFlow.Hangfire/Integration/IHangfireJobRunner.cs Reintroduces obsolete overloads on the interface to match 0.x serialized signatures.
Source/EventFlow.Hangfire/Integration/HangfireJobRunner.cs Implements obsolete overloads that forward to the current ExecuteAsync, preserving behavior.
Source/EventFlow.Hangfire.Tests/Integration/HangfireJobRunnerBackwardCompatibilityTests.cs Adds tests ensuring legacy signatures exist and delegate correctly.

Suppress unused parameter warnings for displayName and queueName in obsolete methods.
@rasmus rasmus enabled auto-merge October 11, 2025 14:50
@rasmus rasmus merged commit c2221a4 into develop-v1 Oct 11, 2025
5 checks passed
@rasmus rasmus deleted the handfire-bug-compatibility branch October 11, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hangfire jobs enqueued by v0.x cannot run by v1.x

2 participants