摘要: 三、IResolver<TService>和SingleServiceResolver<TService>:IResolver<TService>、MultiServiceResolver<TService>:IResolver<IEnumerable<TService>>IResolver<TService>接口只有一个TService型的Current只读属性,返回相应类型的一个对象。这是一个有Lazy意味的轻量接口。一个简单的IResolver<TService>接口的实现类中,Current 阅读全文
posted @ 2011-03-25 15:16 alby 阅读(2400) 评论(0) 推荐(2) 编辑
摘要: 一、路由(Routing)路由功能最初整合在ASP.NET MVC(以下简称MVC)中,后来被独立出来形成了System.Web.Routing 3.5程序集。ASP.NET 4已经把Routing功能已经转移到了System.Web 4 程序集下作为基础服务的一部分。在使用Routing功能时,您已不再需要在web.config中注册Module,因为UrlRoutingModule已经集成进ASP.NET 4中了,就像FormsAuthenticationModule等Module一样(C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config 阅读全文
posted @ 2011-03-25 13:23 alby 阅读(3096) 评论(4) 推荐(2) 编辑