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 class HttpRequestWrapper : HttpRequestBase
@ -133,11 +129,9 @@ namespace System.Web
public override string HttpMethod {
get { return w.HttpMethod; }
}
#if NET_4_0
public override ChannelBinding HttpChannelBinding {
get { return w.HttpChannelBinding; }
}
#endif
public override Stream InputStream {
get { return w.InputStream; }
}
@ -194,12 +188,10 @@ namespace System.Web
get { return w.RequestType; }
set { w.RequestType = value; }
}
#if NET_4_0
public override RequestContext RequestContext {
get { return w.RequestContext; }
internal set { w.RequestContext = value; }
}
#endif
public override NameValueCollection ServerVariables {
get { return w.ServerVariables; }
}
@ -208,6 +200,14 @@ namespace System.Web
get { return w.TotalBytes; }
}
public override UnvalidatedRequestValuesBase Unvalidated {
get { return new UnvalidatedRequestValuesWrapper (w.Unvalidated); }
}
public override ReadEntityBodyMode ReadEntityBodyMode {
get { return ReadEntityBodyMode.Classic; }
}
public override Uri Url {
get { return w.Url; }
}
@ -232,12 +232,10 @@ namespace System.Web
get { return w.UserLanguages; }
}
#if NET_4_5
public void Abort ()
{
w.WorkerRequest.CloseConnection();
}
#endif
public override byte [] BinaryRead (int count)
{