Skip to content

Bind Interfaces that are in Other Project / Assembly #31

@itskhurrams

Description

@itskhurrams

Hi,
I am able to bind if the interface lies in the same project but if my Interfaces are in other Project then i am unable to bind them. I am using following code.

kernel.Bind(x =>
{
x.From("Leopard.Business")
.Select(type => type.Name.EndsWith("Business"))
.BindDefaultInterfaces();

            x.From("Leopard.Data")
                .Select(type => type.Name.EndsWith("Data"))
                .BindDefaultInterfaces();

        });

as long as my Interface are in same project this works but i want to move my interfaces in other project then it does not work. Plz help.

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