I have an ASP.NET web project referencing a service layer class library. I am using dependency injection which I setup in the web layer. I want to take advantage of dependency injection in both projects. But I do not want the web layer to be able to inject certain implementations from the service layer.
An example, I'm using entity framework in the service layer to inject entity repositories into service classes, though I do not want the web layer to have access to inject these entity repositories.
Is there a way to achieve this?
I am playing around with Ninject and AutoFac, so examples using either of these would be fine.