[mcs] Update to latest mscorlib
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpRequestBase.cs
index 3a31754b9499cd72e224c49210e2c2bba832b5ee..a7b601487f11b5c0ae67f3b821cdb882c069b55d 100644 (file)
@@ -38,18 +38,15 @@ using System.Runtime.Serialization;
 using System.Security.Permissions;
 using System.Security.Principal;
 using System.Text;
+using System.Threading;
 using System.Web.Caching;
 
-#if NET_4_0
 using System.Security.Authentication.ExtendedProtection;
 using System.Web.Routing;
-#endif
 
 namespace System.Web
 {
-#if NET_4_0
         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
-#endif
        [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public abstract class HttpRequestBase
@@ -81,6 +78,8 @@ namespace System.Web
 
                public virtual string CurrentExecutionFilePath { get { NotImplemented (); return null; } }
 
+               public virtual string CurrentExecutionFilePathExtension { get { NotImplemented (); return null; } }
+
                public virtual string FilePath { get { NotImplemented (); return null; } }
 
                public virtual HttpFileCollectionBase Files { get { NotImplemented (); return null; } }
@@ -94,11 +93,9 @@ namespace System.Web
                public virtual string HttpMethod { get { NotImplemented (); return null; } }
 
                public virtual Stream InputStream { get { NotImplemented (); return null; } }
-#if NET_4_0
                // LAMESPEC: MSDN says NotImplementedException is thrown only when the request is
                // not IIS7WorkerRequest or ISAPIWorkerRequestInProc, but it is thrown always.
                public virtual ChannelBinding HttpChannelBinding { get { NotImplemented (); return null; } }
-#endif
                public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
 
                public virtual bool IsLocal { get { NotImplemented (); return false; } }
@@ -126,19 +123,20 @@ namespace System.Web
                public virtual string RawUrl { get { NotImplemented (); return null; } }
 
                public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
-#if NET_4_0
                public virtual RequestContext RequestContext {
                        get { NotImplemented (); return null; } 
                        internal set { NotImplemented (); }
                }
-#endif
                public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
 
+               public virtual CancellationToken TimedOutToken { get { NotImplemented (); return default(CancellationToken); } }
+
                public virtual int TotalBytes { get { NotImplemented (); return 0; } }
 
-#if NET_4_5
                public virtual ReadEntityBodyMode ReadEntityBodyMode { get { NotImplemented(); return ReadEntityBodyMode.Classic; } }
-#endif
+
+               public virtual UnvalidatedRequestValuesBase Unvalidated { get { NotImplemented (); return null; } }
+
                public virtual Uri Url { get { NotImplemented (); return null; } }
 
                public virtual Uri UrlReferrer { get { NotImplemented (); return null; } }
@@ -151,12 +149,10 @@ namespace System.Web
 
                public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
 
-#if NET_4_5
                public virtual void Abort ()
                {
                        NotImplemented();
                }
-#endif
 
                public virtual byte [] BinaryRead (int count)
                {
@@ -164,6 +160,40 @@ namespace System.Web
                        return null;
                }
 
+               public virtual Stream GetBufferedInputStream ()
+               {
+                       NotImplemented ();
+                       return null;
+               }
+
+               public virtual Stream GetBufferlessInputStream ()
+               {
+                       NotImplemented ();
+                       return null;
+               }
+
+               public virtual Stream GetBufferlessInputStream (bool disableMaxRequestLength)
+               {
+                       NotImplemented ();
+                       return null;
+               }
+
+               public virtual void InsertEntityBody()
+               {
+                       NotImplemented ();
+               }
+
+               public virtual void InsertEntityBody(byte[] buffer, int offset, int count)
+               {
+                       NotImplemented ();
+               }
+
+               public virtual double [] MapRawImageCoordinates (string imageFieldName)
+               {
+                       NotImplemented ();
+                       return null;
+               }
+
                public virtual int [] MapImageCoordinates (string imageFieldName)
                {
                        NotImplemented ();