Decoupling Application Code from IoC Implementation
February 16th, 2010
Background:
While working on my pet project, using my favourite dependency injection framework, StructureMap, I came to a realization. If I ever decide to change my dependency injection framework for something else, such as Ninject, my code is tightly coupled to StructureMap. The change would force me to update a bunch of code throughout my numerous application layers.