Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControllerContext"/> class.
 /// </summary>
 /// <param name="context">Request context.</param>
 public ControllerContext(IHttpContext context)
 {
     ViewData = new ViewData();
     HttpContext = context;
     Uri = context.Request.Uri;
     UriRewrite = context.Request.Uri;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControllerContext"/> class.
 /// </summary>
 public ControllerContext()
 {
     ViewData = new ViewData();
 }