IoC containers and service locator pattern
- by TheSilverBullet
I am trying to get an understanding of Inversion of Control and the dos and donts of this. Of all the articles I read, there is one by Mark Seemann (which is widely linked to in SO) which strongly asks folks not to use the service locator pattern.
Then somewhere along the way, I came across this article by Ken where he helps us build our own IoC.
I noticed that is is nothing but an implementation of service locator pattern.
Questions:
Is my observation correct that this implementation is the service locator pattern?
If the answer to 1. is yes, then Do all IoC containers (like Autofac) use the service locator pattern?
If the answer to 1. is no, then why is this differen?
Is there any other pattern (other than DI) for inversion of control?