public ControllerContext(HttpContextBase context, RouteData routeData, ControllerBase controller) : base(context, routeData) { Precondition.Require(controller, () => Error.ArgumentNull("controller")); _controller = controller; }
public ViewContext(HttpContextBase context, RouteData routeData, ControllerBase controller, IView view, ViewDataDictionary viewData, TempDataDictionary tempData) : base(context, routeData, controller) { _view = view; _viewData = viewData; _tempData = tempData; }
public ControllerContext(RequestContext context, ControllerBase controller) : this(ControllerContext.GetRequestContext(context).Context, ControllerContext.GetRequestContext(context).RouteData, controller) { }
public ViewContext(RequestContext context, ControllerBase controller, IView view, ViewDataDictionary viewData, TempDataDictionary tempData) : this(GetRequestContext(context).Context, GetRequestContext(context).RouteData, controller, view, viewData, tempData) { }