Skip to content

Add binding to all interfaces that a given type implements #47

Description

@intentor

The idea is to create a binding action that binds to all interfaces of a given type, like:

  • a class of name MyClass implements IInterface1, IInterface2, IInterface3.
  • to bind all of these interfaces to e.g. a singleton of MyClass, something like container.BindToInterfaces<MyClass>().ToSingleton<MyClass>() could be done.

The BindToInterfaces<T>() could receive classes or interfaces.

It could be also created a method that bounds to all inherited and implemented types of a given type.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions