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

Injecting from child into parent #613

Open
DanielDPielok opened this issue Jan 11, 2024 · 1 comment
Open

Injecting from child into parent #613

DanielDPielok opened this issue Jan 11, 2024 · 1 comment

Comments

@DanielDPielok
Copy link

Hi,

First I have to thank you for providing such an awesome framework for free. We really enjoy working with it in several projects now.
But we have one issue which we are not able to solve yet: I am trying to inject an instance from a child LifetimeScope into a registered class in it's parent LifetimeScope. The other way around works perfectly fine, I can register an instance in the parent and all injects of that instance in all classes of the child scope can be resolved.
Can you give me a hint?

Thanks in advance.
Daniel

@hadashiA
Copy link
Owner

Interesting report.. Thanks for looking into it.

For example a base class, that is located in another csproj)

I see. Perhaps it's because I'm checking the [Inject] method and ctor back to the base class.

I will try to address this. Thanks.

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

2 participants