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

Provide a way to clear IEnumerable parent objects #12

Open
jsgoupil opened this issue Jan 30, 2017 · 0 comments
Open

Provide a way to clear IEnumerable parent objects #12

jsgoupil opened this issue Jan 30, 2017 · 0 comments

Comments

@jsgoupil
Copy link

jsgoupil commented Jan 30, 2017

If a parent kernel has something bound like this.

parent.Bind<Object1>().ToSelf();
parent.Bind<Object1>().ToSelf();
parent.Bind<Main>().ToSelf();

public class Main(IEnumerable<Object1> objects) {}

It seems impossible to clear this IEnumerable from a child kernel...

When registering an Object1 with the child kernel, it overrides the parent. But it's impossible to clear it completely (Make it an empty list)

@jsgoupil jsgoupil changed the title Provide a way to override IEnumerable parent objects Provide a way to clear IEnumerable parent objects Jan 30, 2017
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

1 participant