IoC框架,依赖注入

IOC的机制是:---处理类之间和接口之间或类与接口之间关联关系,根据好莱坞原则,调用着与被调用者的主次关系,实现开关的原则.类之间可以很好(甚至)可以完全避免耦合,一个类只负责自己逻辑功能代码,如果想调用其它类告诉IOC容器去做(一种比较好的方式是根据配置文件来设定复杂关系),而不需要在代码上过多的编写.

 

透透彻彻IoC(你没有理由不懂!)

Asp.net MVC 使用Autofac的简单使用 IOC

http://blog.csdn.net/xingxing513234072/article/details/21564613

 

http://docs.autofac.org/en/latest/register/registration.html#reflection-components

 

http://www.360doc.com/content/13/0328/22/11741424_274577226.shtml

 

IoC容器Autofac  Good   http://blog.csdn.net/linux7985/article/details/44782623

 

http://blog.csdn.net/dhx20022889/article/details/9336575

 

http://www.cnblogs.com/lori/archive/2012/09/05/2671724.html

 

http://developer.51cto.com/art/201407/446711.htm

 

http://www.cnblogs.com/liping13599168/archive/2011/07/16/2108209.html

http://blog.csdn.net/xingxing513234072/article/details/10117095

 

posted @ 2015-07-20 17:48  cn_chenhao  阅读(145)  评论(0编辑  收藏  举报