grumpydev/TinyIoC

Auto register types from different namespace and different assmblies

Opened this issue · 0 comments

gazlu commented

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<>));