public OpenTsdbClient(string url, bool useCompression = true) { if (useCompression) { client = new HttpClient(new GZipHttpMessageHandler()); } else { client = new HttpClient(); } client.BaseAddress = new Uri(url); AutoMapperCfg.Init(); }
public OpenTsdbClient(HttpClient client) { this.client = client; AutoMapperCfg.Init(); }