예제 #1
0
        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();
        }
예제 #2
0
        public OpenTsdbClient(HttpClient client)
        {
            this.client = client;

            AutoMapperCfg.Init();
        }