Dependency injection

Jun 16, 2014 at 9:13 PM
In the demo project I saw this configuration:
  .RegisterType<IProductService, ProductService>()
   .RegisterType<ICustomerService, CustomerService>()
The two sections repeat them self. How can I register all services in the application?

Thanks
Coordinator
Jul 3, 2014 at 4:46 PM
If your using Unity you can configure it so it registers your binding by convention
http://blogs.msdn.com/b/agile/archive/2013/03/12/unity-configuration-registration-by-convention.aspx.
Marked as answer by lelong37 on 7/3/2014 at 9:46 AM
Jul 3, 2014 at 6:51 PM
Thank you. This exactly what I looked for