Fix/issues with running commandprocessor samples #3500
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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](https://private-user-images.githubusercontent.com/13016943/410900259-cea89cae-1739-424b-89aa-0f8a2b38c4b7.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NDk0NDAsIm5iZiI6MTczOTU0OTE0MCwicGF0aCI6Ii8xMzAxNjk0My80MTA5MDAyNTktY2VhODljYWUtMTczOS00MjRiLTg5YWEtMGY4YTJiMzhjNGI3LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE2MDU0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiODg3ZDg5ODZhNGIyODg2MGJhMjRjYzczYTFlMDIxMTNmNGRkZDVhZTNhN2RhNTIxZDdmYTdiMDRiZGI3YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.egOocLB0i7n5JZlMpXb4ltmz3gnlV4w_GdU2z-hUEW0)