1 namespace System.Web.Routing { 2 using System.Runtime.CompilerServices; 3 using System.Diagnostics.CodeAnalysis; 4 5 [TypeForwardedFrom("System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] 6 public class RequestContext { RequestContext()7 public RequestContext() { 8 } 9 10 [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", 11 Justification = "The virtual property setters are only to support mocking frameworks, in which case this constructor shouldn't be called anyway.")] RequestContext(HttpContextBase httpContext, RouteData routeData)12 public RequestContext(HttpContextBase httpContext, RouteData routeData) { 13 if (httpContext == null) { 14 throw new ArgumentNullException("httpContext"); 15 } 16 if (routeData == null) { 17 throw new ArgumentNullException("routeData"); 18 } 19 HttpContext = httpContext; 20 RouteData = routeData; 21 } 22 23 public virtual HttpContextBase HttpContext { 24 get; 25 set; 26 } 27 28 public virtual RouteData RouteData { 29 get; 30 set; 31 } 32 } 33 } 34