MEF In MVC
摘要:
这种方式是利用ControllerFactory来实现的。首先我们要自定义自己的ControllerFactory :publicclassMEFControllerFactory:DefaultControllerFactory{privateCompositionContainerContainer;publicMEFControllerFactory(){varcatalog=newAggregateCatalog(newDirectoryCatalog(AppDomain.CurrentDomain.SetupInformation.PrivateBinPath));Container 阅读全文
posted @ 2011-09-13 11:05 wenwuxianren 阅读(1902) 评论(0) 推荐(1) 编辑