Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issues with running commandprocessor samples #3500

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andrewjpoole
Copy link

I pulled down the Brighter code to explore and understand how it works, however I found some issues with the CommandProcessor samples, so here's a pr to fix them.
One was related to the _successor field of RequestHandlerAsync.cs which was being set recursively, causing a stackoverflow exception. I am not sure if my fix is the correct one or in the right place, but at least its a start!

This screenshot illustrates the issue I was seeing
644ae2f6-1357-4070-b2c5-6a4bd6644955

…rldInternalBus otherwise MessagePump throws Unable to cast object of type 'HelloWorld.GreetingCommandHandler' to type 'Paramore.Brighter.IHandleRequestsAsync
…on RequestHandlerAsync, by only asigning the _successor if it is different to this, i.e. the current instance.
@CLAassistant
Copy link

CLAassistant commented Feb 7, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

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

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.00 (9.38 -> 9.38)

View detailed results in CodeScene

@iancooper
Copy link
Member

Hi @andrewjpoole thanks. Things are in flux a bit as we push towards V10 release candidate, so the 9x branch is much more stable right now. But thanks for this PR. I'll take a look.

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.

3 participants