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

MediatR.Examples.Windsor fix bug created by me before #744

Merged
merged 5 commits into from
Jun 1, 2022

Conversation

alexandruchirita4192
Copy link
Contributor

@alexandruchirita4192 alexandruchirita4192 commented May 20, 2022

  • Better checking of baseRequestType and checking assumptions with Debug.Assert instead of writing assumptions as comments
  • Handling both request exception actions (that log the exception) and request exception handlers (that log the handler) in Program.cs in the correct order; extracted some methods in Program.cs and tried to give them meaningful names (sadly some methods could have better names though)
  • Removed writing exception types in exception handlers after better understanding and wrote comments instead to understand what should actually write these exception names (LogExceptionAction from examples is actually writing exception names); sorry for this bug created by myself
  • Added a small check in Runner.cs to ensure the method is not throwing an exception in case this method is called with less lines in messages list (split by end of lines)

…g.Assert instead of writing them as comments
- Fixed ExceptionHandlers.cs and ExceptionHandlersOverrides.cs comments to explain why something is needed and in which order
- Fixed Runner.cs comments to explain what is actually writing the expected message
- Fixed Program.cs for Castle Windsor example to handle both IRequestExceptionAction<,> and IRequestExceptionHandler<,,> by exctracting some methods and handling them both (there are more changes in Program.cs only because of extracting methods)
@jbogard jbogard merged commit 340381e into jbogard:master Jun 1, 2022
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.

2 participants