X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net%2FWebRequest.cs;h=fd450c86653173ba5279441972e3d338e341400b;hb=34d0fdb5a32a979fdf347497cde43127a874dac1;hp=ae1159958aa3ef0738f811e29f27e2cd640cc61b;hpb=f81f8763c1ae3c544ecf9a8404e1fe5ea1fb489e;p=mono.git diff --git a/mcs/class/System/System.Net/WebRequest.cs b/mcs/class/System/System.Net/WebRequest.cs index ae1159958aa..fd450c86653 100644 --- a/mcs/class/System/System.Net/WebRequest.cs +++ b/mcs/class/System/System.Net/WebRequest.cs @@ -41,6 +41,7 @@ using System.Net.Cache; using System.Security.Principal; using System.Threading.Tasks; using System.Text.RegularExpressions; +using Mono.Net; #if NET_2_1 using ConfigurationException = System.ArgumentException; @@ -59,6 +60,8 @@ namespace System.Net static IWebProxy defaultWebProxy; static RequestCachePolicy defaultCachePolicy; + internal const int DefaultTimeout = 100000; + static WebRequest () { #if MOBILE @@ -453,12 +456,11 @@ namespace System.Net void ISerializable.GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext) { - throw new NotSupportedException (); + GetObjectData(serializationInfo, streamingContext); } protected virtual void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext) { - throw GetMustImplement (); } public static bool RegisterPrefix (string prefix, IWebRequestCreate creator) @@ -542,6 +544,5 @@ namespace System.Net { return Task.Factory.FromAsync (BeginGetResponse, EndGetResponse, null); } - } }