-
Notifications
You must be signed in to change notification settings - Fork 1.1k
convert Failure to exception when using Ask<object> #7286
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
convert Failure to exception when using Ask<object> #7286
Conversation
Thanks for the PR - looks like this broke some tests |
…ing the Failure object itself as a result
702ee75
to
d12dea9
Compare
d12dea9
to
9f7f91b
Compare
It seems that the framework relies on this behavior. |
Probably just poor test design - at least that was my gut feeling when I looked at this PR. I'll give it another look when I can |
# Conflicts: # src/core/Akka/Actor/ActorRef.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi here. I wanted to report that after updating to 1.5.45+, I noticed some parts of the project I am working on stopped working as intended. var orderQueryResponse = await DomainService<CheckoutDomainService>.Ask<object>(Mediator, getOrderQuery);
if (orderQueryResponse is Status.Failure sf)
{
// does something if you got back a failure This code was probably bad design in the first place, but I wanted to let you know just in case other people may have used the same pattern and they are experiencing a breaking change after updating. I actually like what the PR is introducing and I think it makes sense. |
Thanks for weighing in @lucavice - I agree with all of this. Changing the behavior was probably the right call so the PR was a good idea, but yeah it's going to cause breaking behavioral changes for components that relied on the old sub-optimal behavior. Thanks for documenting this in case other users get bit by it too. |
close #7254