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

Registration source handling differs based on how child scopes are created #1283

Closed
tillig opened this issue Aug 10, 2021 · 1 comment
Closed

Comments

@tillig
Copy link
Member

tillig commented Aug 10, 2021

Not really a bug or a feature, but something we should check into: When you call LifetimeScope.BeginLifetimeScope() the handling of how registration sources are dealt with differs based on whether you pass a configuration action. Specifically, in that case any registration source where IsAdapterForIndividualComponent is true will be copied into the child lifetime scope.

This can cause duplicate resolutions to occur as seen in autofac/Autofac.Mef#23.

With the major amount of change that's gone on in v6.x it may be worth checking into whether the IsAdapterForIndividualComponent flag makes sense anymore; and possibly whether we're handling registration sources properly in each case, assuming it is.

@tillig tillig added the bug label Aug 10, 2021
@tillig
Copy link
Member Author

tillig commented Nov 6, 2023

We're pretty far past this and I don't think anyone is going to do anything here. If we see a PR to address some of this, great; if not, it'll be what it is.

@tillig tillig closed this as completed Nov 6, 2023
@tillig tillig added the wontfix label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant