using System.Security.Principal;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
+using Mono.Net;
#if NET_2_1
using ConfigurationException = System.ArgumentException;
static IWebProxy defaultWebProxy;
static RequestCachePolicy defaultCachePolicy;
+ internal const int DefaultTimeout = 100000;
+
static WebRequest ()
{
#if MOBILE
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)
{
return Task<WebResponse>.Factory.FromAsync (BeginGetResponse, EndGetResponse, null);
}
-
}
}