From f8b806dbb7b8f377a806463c203466d4b6734cdf Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Tue, 23 Sep 2014 22:38:01 -0700 Subject: [PATCH] Derive from HttpClientHandler on all platforms, not just PLib --- src/ModernHttpClient/Android/OkHttpNetworkHandler.cs | 2 +- src/ModernHttpClient/iOS/NSUrlSessionHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs index 84585b1..8b7bac6 100644 --- a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs +++ b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs @@ -14,7 +14,7 @@ namespace ModernHttpClient { - public class NativeMessageHandler : HttpMessageHandler + public class NativeMessageHandler : HttpClientHandler { readonly OkHttpClient client = new OkHttpClient(); readonly bool throwOnCaptiveNetwork; diff --git a/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs b/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs index 145521d..07f5f4a 100644 --- a/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs +++ b/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs @@ -29,7 +29,7 @@ class InflightOperation public bool IsCompleted { get; set; } } - public class NativeMessageHandler : HttpMessageHandler + public class NativeMessageHandler : HttpClientHandler { readonly NSUrlSession session;