Skip to content

Support for removing Exports from Container #83

Description

@darkcamper

Hi @ipjohnson , I'm looking for some kind of replacement for Ninject's Rebind functionality. It allows to throw away all the previous Exports for a certain type without modifying Exports for the rest of the types.

I'm trying to load a series of IConfigurationModule-like classes (inside a single .Configure call) that add exports to a certain interface, so I can do a Locate<IEnumerable> to retrieve them all. But sometimes I would need that a module could erase all previous exports for IThatCertainInterface before adding its own exports.

Is it currently possible with Grace? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions