Skip to content

Callback Registration should check async then sync interfaces#3822

Merged
iancooper merged 11 commits into
masterfrom
callback_registration
Sep 30, 2025
Merged

Callback Registration should check async then sync interfaces#3822
iancooper merged 11 commits into
masterfrom
callback_registration

Conversation

@iancooper

Copy link
Copy Markdown
Member

The code was using the marker interface IAmAProducer and not the derived interfaces IAmAProducerSync and IAmAProducerAsync which means that it was not correctly confirming the type of producer before registering the callback. In addition, we should prefer the async to the sync callback

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@iancooper iancooper merged commit a281774 into master Sep 30, 2025
23 of 25 checks passed
@iancooper iancooper deleted the callback_registration branch October 25, 2025 16:31
DevJonny pushed a commit to DevJonny/Brighter that referenced this pull request Feb 28, 2026
…erCommand#3822)

* check in specs

* first stab at specs

* chore: share instructions between Claude and Copilot

* fix: typos in markdown files

* Clarify transport definition in documentation

* Fix wording and formatting in transports.md

* feat: producer specification

* feat: add more information on channel factories

* fea: add callbacks

* feat: update producers

* fix: ensure that we check both sync and async interfaces for the callback, prior version would not check for async first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant