2010年12月20日
摘要: 早在Enterprise Library 5.0之前,就已经有了一个Common Service Locator.在这里假设您对Enterprise Library已经有一定了解。在Enterprise Library 5.0中,我们通常会使用EnterpriseLibraryContainer.Current,实际上它是IServiceLocator接口。例如下面的代码: 我们从容器中获取一个E... 阅读全文
posted @ 2010-12-20 17:39 PetterLiu 阅读(2087) 评论(2) 推荐(0) 编辑