public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            PlatformServices.Init();

            // Code for starting up the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif

            PlatformServices.UpdateVersionPreference();

                        #if DEBUG
            (null as IOnlineContextConfiguration).HttpClient(() => {
                var handler         = new HttpMessageHandlerWrapper();
                handler.RequestLog += Console.WriteLine;
                return(new HttpClient(handler));
            });
                        #endif

            LoadApplication(new App());

            app.SetStatusBarHidden(false, false);

            return(base.FinishedLaunching(app, options));
        }
 protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 {
     _handler = _handler ?? SetupHandlerChain();
     return(_handler.VisitableSendAsync(request, cancellationToken));
 }
 public DecompressionHandler(DecompressionMethods decompressionMethods, HttpMessageHandlerWrapper innerHandler)
 {
     _decompressionMethods = decompressionMethods;
     _innerHandler         = innerHandler;
 }