June 2010
1 post
3 tags
Abstract Factory and IoC Container in asp.net MVC
Sometimes, you want to be able to change the implementation of a component depending on a variable that you don’t control at design time, a user action for example. This will be a lot easier to explain if we use a concrete example. I will present the problem that I faced to illustrate the usage of the method.
Consider a simple search form, but you want to be able, with the same form, to search...