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

RegistrationStrategy throw exception type #113

Closed
recepakyuz opened this issue Feb 6, 2020 · 3 comments
Closed

RegistrationStrategy throw exception type #113

recepakyuz opened this issue Feb 6, 2020 · 3 comments

Comments

@recepakyuz
Copy link

recepakyuz commented Feb 6, 2020

Hi,
I like this library but I scare multi implementation.
Can you make an improvement.
If app find multi implementation at registering, Throw exception.

@khellang
Copy link
Owner

khellang commented Feb 6, 2020

Sure, that should be pretty easy. Can I ask why you're worried about multiple registrations for a single service? 🤔

@khellang
Copy link
Owner

khellang commented Feb 6, 2020

Pushed a new version to NuGet with this feature 😊

@dasMulli
Copy link

Thanks for implementing that, it just saved me from hours of debugging.
Use case: having a dynamic IView<TTarget,TSource>() registrations (basically mapping with logic but not a good fit for automapper, also some magic wrapping instances for APM tracing and some magic using the type system so users can't use invalid combinations). in the process of refactoring it turned out that some hard dependencies on converter types caused registrations for the same type - and it would have been hard to spot that while testing

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

No branches or pull requests

3 participants