首页 新闻 会员 周边

ASP.NET MVC IControllerActivator 接口有哪些实现

0
[已关闭问题] 关闭于 2011-08-03 14:08

ASP.NET MVC3

DefaultControllerFactory类中的方法

protected internal virtual IController GetControllerInstance(RequestContext requestContext, Type controllerType)
{
if (controllerType == null)
{
throw new HttpException(0x194, string.Format(CultureInfo.CurrentCulture, MvcResources.DefaultControllerFactory_NoControllerFound, new object[] { requestContext.HttpContext.Request.Path }));
}
if (!typeof(IController).IsAssignableFrom(controllerType))
{
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, MvcResources.DefaultControllerFactory_TypeDoesNotSubclassControllerBase, new object[] { controllerType }), "controllerType");
}
return this.ControllerActivator.Create(requestContext, controllerType);
}



其中这个引用是IControllerActivator接口,我想知道它这里具体用的是哪个实现??
this.ControllerActivator.Create(requestContext, controllerType)
问题补充:

找到了

DefaultControllerActivator

调调儿的主页 调调儿 | 初学一级 | 园豆:155
提问于:2011-08-03 13:56
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册