AsgSearch.web.Classes.MyUnityControllerFactory.GetControllerInstance C# (CSharp) Метод

GetControllerInstance() защищенный Метод

protected GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController
requestContext System.Web.Routing.RequestContext
controllerType System.Type
Результат IController
        protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)
        {
            if (controllerType == null)
            {
                throw new HttpException(
                    404,
                    string.Format(
                        "The controller for path '{0}' could not be found.",
                        requestContext.HttpContext.Request.Path));
            }
            return (IController)_container.Resolve(controllerType);
        }