Solution projects:
- ClassLibrary.Abstract
- has lots of yummy services
- ClassLibrary.Concrete
- contains implementations to services above
- MvcWebApp
- references classes above
- contains composition root
Everything is registered in the composition root, so MvcWebApp
obviously references container, in my case it's Autofac but I don't suppose it matters.
Question: What is the proper way (if there's any) to resolve services at runtime in the class libraries without adding references to the container everywhere in the solution, while still being able to control lifetime scope?