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

Bind Interfaces that are in Other Project / Assembly #31

Open
itskhurrams opened this issue Aug 11, 2017 · 0 comments
Open

Bind Interfaces that are in Other Project / Assembly #31

itskhurrams opened this issue Aug 11, 2017 · 0 comments

Comments

@itskhurrams
Copy link

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.

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