public void ResetServerBaseAddress(string baseAddress)
 {
     AppHttpClient = new AppHttpClient(HttpClientHandler, _appCenterLogger, _debugLogger)
     {
         BaseAddress = new Uri(baseAddress)
     };
     AppHttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(KnownMimeTypes.Json));
 }
        public HttpService(IAppCenterLogger appCenterLogger, IDebugLogger debugLogger)
        {
            if (Cookie == null)
            {
                Cookie = new CookieContainer();
            }
            if (HttpClientHandler == null)
            {
                HttpClientHandler = new HttpClientHandler {
                    CookieContainer = Cookie, UseCookies = true
                }
            }
            ;

            _appCenterLogger = appCenterLogger;
            _debugLogger     = debugLogger;

            AppHttpClient = new AppHttpClient(HttpClientHandler, _appCenterLogger, _debugLogger)
            {
                BaseAddress = new Uri(Server.ApiBaseAddress)
            };
        }