+2010-05-05 Marek Habersack <mhabersack@novell.com>
+
+ * HttpRequest.cs: implemented new 4.0 property - RequestContext
+
2010-04-29 Marek Habersack <mhabersack@novell.com>
* HttpRequest.cs: added 4.0 InsertEntityBody overloads (not
#if NET_4_0
using System.Security.Authentication.ExtendedProtection;
+using System.Web.Routing;
#endif
namespace System.Web
static readonly UrlMappingCollection urlMappings;
readonly static char [] queryTrimChars = {'?'};
#if NET_4_0
+ RequestContext requestContext;
+
static bool validateRequestNewMode;
internal static bool ValidateRequestNewMode {
get { return validateRequestNewMode; }
}
}
#if NET_4_0
+ public RequestContext RequestContext {
+ get {
+ if (requestContext == null)
+ requestContext = new RequestContext (new HttpContextWrapper (this.context ?? HttpContext.Current), new RouteData ());
+
+ return requestContext;
+ }
+
+ internal set { requestContext = value; }
+ }
+
public ChannelBinding HttpChannelBinding {
get {
throw new PlatformNotSupportedException ("This property is not supported.");