Skip to content

Provide a way to clear IEnumerable parent objects #12

@jsgoupil

Description

@jsgoupil

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions