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

Auto register types from different namespace and different assmblies #93

Open
gazlu opened this issue Mar 9, 2016 · 0 comments
Open

Comments

@gazlu
Copy link

gazlu commented Mar 9, 2016

I have a generic repository class in a different assembly and its generic implementation in different assembly, Container.AutoRegister does not identify and register it. Given the namespace is also different.

I need to register it explicitly:

container.Register(typeof(MyProject.Core.Repository.IRepository<>), typeof(MyProject.Data.Repository<>));

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