-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
WithConcreteTypeDynamicRegistrations hides failed dependency resolution #506
Comments
Thanks. I will look. |
@Haukinger From your second example, you did not register Service, If you register the root Service, containerWithNondescriptException.Register<Service>(); then the exception will be very similar to the first example: |
It was my expectation that That's the problem I have with the exception in the second example - it looks like there's a problem with |
@Haukinger Huh you are right. Ok, The problem is more subtle. I definitely can make it better. |
I have added the overload If you specify I did not change the original behavior because there are cases when you have multiple dynamic rules in place, and there is a rule after the |
Normally, one gets an explicit message when a dependency fails to resolve (e.g. no concrete type registered for a given interface), like
When I use
WithConcreteTypeDynamicRegistrations
, though, this info disappears from the exception message and I just getReproduction steps:
The text was updated successfully, but these errors were encountered: