-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Assign correct slots during IEnumerable resolution #80410
Conversation
…merable resolution. fix dotnet#79938
Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection Issue Detailsfix #79938
|
Assert.IsType<FakeService>(service); | ||
Assert.Equal(2, services.Length); | ||
Assert.True(services.Any(s => s.GetType() == typeof(FakeService))); | ||
Assert.True(services.Any(s => s.GetType() == typeof(FakeOpenGenericService<PocoClass>))); |
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.
Note: ideally we'd assert some order, but the Lamar container returns a different order than other implementations.
# Conflicts: # src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/CallSiteFactory.cs
src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/CallSiteFactory.cs
Outdated
Show resolved
Hide resolved
...ensions.DependencyInjection.Specification.Tests/src/DependencyInjectionSpecificationTests.cs
Show resolved
Hide resolved
I'll take a look at this. |
@davidfowl any thoughts? |
cc previous owners @maryamariyan and @eerhardt to get some more eyes on this. Thanks |
@davidfowl going once... |
...ensions.DependencyInjection.Specification.Tests/src/DependencyInjectionSpecificationTests.cs
Show resolved
Hide resolved
...ies/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderContainerTests.cs
Show resolved
Hide resolved
LGTM; updated to |
Thanks @madelson! |
Two unrelated CI crashes in |
fixes #79938
(issue with open generic)
fixes #87017
(issue with having an existing enumerable)