[system.net.http] Make HttpClient a partial class and skip default .ctor when buildin...
authorSebastien Pouliot <sebastien@xamarin.com>
Sun, 22 Nov 2015 22:05:08 +0000 (17:05 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Tue, 24 Nov 2015 14:38:07 +0000 (09:38 -0500)
mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs

index 114e78e83c2a53037594ccfbdbc1e458879ea10e..baa6dd9f0d26cc6a219c5187164013043009be9d 100644 (file)
@@ -33,7 +33,7 @@ using System.IO;
 
 namespace System.Net.Http
 {
-       public class HttpClient : HttpMessageInvoker
+       public partial class HttpClient : HttpMessageInvoker
        {
                static readonly TimeSpan TimeoutDefault = TimeSpan.FromSeconds (100);
 
@@ -44,10 +44,12 @@ namespace System.Net.Http
                long buffer_size;
                TimeSpan timeout;
 
+#if !XAMARIN_MODERN
                public HttpClient ()
                        : this (new HttpClientHandler (), true)
                {
                }
+#endif
                
                public HttpClient (HttpMessageHandler handler)
                        : this (handler, true)