首页 新闻 赞助 找找看

System.Web.HttpApplication.MapHttpHandler问题

0
悬赏园豆:100 [已关闭问题] 关闭于 2012-11-08 11:48

System.Web.HttpApplication.MapHttpHandler中定义了

IHttpHandlerFactory2 httpHandlerFactory = factory as IHttpHandlerFactory2;
            if (httpHandlerFactory != null)
            {
                httpHandler = httpHandlerFactory.GetHandler(context, requestType, path, pathTranslated);
            }
            else
            {
                httpHandler = factory.GetHandler(context, requestType, path.VirtualPathString, pathTranslated);
            }

这个是handler factory不为null的情况下,但是如果factory为null 那在哪里取到httpHandler?

比如我配置了

<add verb="*" path="*.abc" type="WebApplication1.App_Code.CustomHttpHandler, WebApplication1"/>

对 test.abc的访问交给CustomHttpHandler,这个寻找handler的过程在哪个位置?

.!的主页 .! | 菜鸟二级 | 园豆:402
提问于:2012-11-07 11:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册