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

Assign correct slots during IEnumerable resolution #80410

Merged
merged 6 commits into from
Jun 9, 2023

Conversation

madelson
Copy link
Contributor

@madelson madelson commented Jan 10, 2023

fixes #79938
(issue with open generic)

fixes #87017
(issue with having an existing enumerable)

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 10, 2023
@ghost
Copy link

ghost commented Jan 10, 2023

Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection
See info in area-owners.md if you want to be subscribed.

Issue Details

fix #79938

Author: madelson
Assignees: -
Labels:

area-Extensions-DependencyInjection

Milestone: -

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>)));
Copy link
Contributor Author

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
@madelson madelson requested review from steveharter and removed request for davidfowl January 27, 2023 22:34
@davidfowl davidfowl self-requested a review February 21, 2023 16:25
@davidfowl
Copy link
Member

I'll take a look at this.

@steveharter
Copy link
Member

@davidfowl any thoughts?

@davidfowl davidfowl self-assigned this Mar 27, 2023
@steveharter
Copy link
Member

cc previous owners @maryamariyan and @eerhardt to get some more eyes on this. Thanks

@steveharter
Copy link
Member

@davidfowl going once...

@steveharter
Copy link
Member

  • @halter73 and @eerhardt for another set of eyes. I'll pull down locally and do a deeper look.

@steveharter
Copy link
Member

LGTM; updated to main and planning on committing once CI is green.

@steveharter steveharter changed the title Assign correct slots for open generic service descriptors during IEnumerable resolution Assign correct slots during IEnumerable resolution Jun 8, 2023
@steveharter
Copy link
Member

Thanks @madelson!

@steveharter
Copy link
Member

Two unrelated CI crashes in System.Net.Mail.Functional.Tests. Looks like issue: #87271

@steveharter steveharter merged commit 1d5448c into dotnet:main Jun 9, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-DependencyInjection community-contribution Indicates that the PR has been added by a community member
Projects
None yet
3 participants