We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
builder.Register<IFoo, Foo>(); builder.Register<IFoo, Bar>(); builder.Build().Resolver<IFoo>(); // which type?
Is this behavior undefined? First or Last?
Microsoft.Extensions.DependencyInjection uses Last registered. This is useful for overriding arbitrarily after a plugin has registered.
Microsoft.Extensions.DependencyInjection
Last
The text was updated successfully, but these errors were encountered:
In the current implementation, First is always returned. ( But I didn't think too much about this behaviour
This is useful for overriding arbitrarily after a plugin has registered.
I see. That looks better. I'm going to fix it so that Last is returned.
Sorry, something went wrong.
Released in v1.7.2 . Thanks for the advice .
No branches or pull requests
Is this behavior undefined? First or Last?
Microsoft.Extensions.DependencyInjection
usesLast
registered.This is useful for overriding arbitrarily after a plugin has registered.
The text was updated successfully, but these errors were encountered: