2009年9月20日
摘要: WCSF中注入的服务最终都是存在OB中, 在View, Presenter和Controller中可用通过[ServiceDependency]修饰来引入使用. 通过分析CompositeWeb的源码, 这里给出一种直接获得当前模块中服务的方法, 当然, 一般项目中的模块都能使用[ServiceDependency]. public static object GetInjectService(T... 阅读全文
posted @ 2009-09-20 18:30 Molby Home 阅读(1040) 评论(1) 推荐(0) 编辑
摘要: 可以使用类似Microsoft.Practices.CompositeWeb.Web.UI.Page中的方法: WebClientApplication.BuildItemWithCurrentContext(this); 阅读全文
posted @ 2009-09-20 16:18 Molby Home 阅读(402) 评论(0) 推荐(0) 编辑