public SyncThingApiClient(Uri baseAddress, string apiKey)
 {
     var httpClient = new HttpClient(new SyncThingHttpClientHandler())
     {
         BaseAddress = baseAddress.NormalizeZeroHost(),
         Timeout = TimeSpan.FromSeconds(70),
     };
     this.api = RestClient.For<ISyncThingApi>(httpClient, new JsonSerializerSettings()
     {
         Converters = { new EventConverter() }
     });
     this.api.ApiKey = apiKey;
 }
        public SyncThingApiClient(Uri baseAddress, string apiKey)
        {
            var httpClient = new HttpClient(new SyncThingHttpClientHandler())
            {
                BaseAddress = baseAddress.NormalizeZeroHost(),
                Timeout     = TimeSpan.FromSeconds(70),
            };

            this.api = RestClient.For <ISyncThingApi>(httpClient, new JsonSerializerSettings()
            {
                Converters = { new EventConverter() }
            });
            this.api.ApiKey = apiKey;
        }