Just recently started to grasp on MVC and design patterns. (back to school at 34 ;) )
I was asked by my teacher to design a two part application. It's a recipe website that as an admin WinForms app.
I started to develop my core domain and then moved on to persistence and then moved to the MVC web app... and then I started reading about Dependency Injection. So I did some digging around and decided to go with Autofac just to apply DIP between core and persistence.
And then I read about Composition Root and it states that the IoC container should remain the closest to the start of your application. Fair enough, but my problem lies on:
a) When I move to my WinForms app won't I need to redo the IoC container for it?
b) Wouldn't it be better to have some intermediate layer that took care of DI between all layers?