Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -40,16 +40,12 @@ using System.Security.Principal;
using System.Text;
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
@@ -94,11 +90,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 +120,18 @@ 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 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 +144,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)
{