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