From 5d0c8d6679e9c0c63810523006cd708892e6dba4 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 31 May 2015 18:58:00 +0930 Subject: [PATCH] get the portable tests back running by muting all these methods that don't exist --- Octokit/Http/HttpClientAdapter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Octokit/Http/HttpClientAdapter.cs b/Octokit/Http/HttpClientAdapter.cs index c6794dab..ed07dc9d 100644 --- a/Octokit/Http/HttpClientAdapter.cs +++ b/Octokit/Http/HttpClientAdapter.cs @@ -18,7 +18,9 @@ namespace Octokit.Internal /// public class HttpClientAdapter : IHttpClient { +#if !PORTABLE readonly IWebProxy _webProxy; +#endif readonly HttpClient _http; [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -29,6 +31,7 @@ namespace Octokit.Internal _http = new HttpClient(new RedirectHandler { InnerHandler = handler }); } +#if !PORTABLE [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] [SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")] public HttpClientAdapter(IWebProxy webProxy) @@ -47,6 +50,7 @@ namespace Octokit.Internal _webProxy = webProxy; _http = new HttpClient(new RedirectHandler { InnerHandler = handler}); } +#endif /// /// Sends the specified request and returns a response. @@ -93,6 +97,7 @@ namespace Octokit.Internal { AllowAutoRedirect = false }; +#if !PORTABLE if (httpOptions.SupportsAutomaticDecompression) { httpOptions.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; @@ -102,6 +107,7 @@ namespace Octokit.Internal httpOptions.UseProxy = true; httpOptions.Proxy = _webProxy; } +#endif return httpOptions; }