Beispiel #1
0
        public ConsulClient(ConsulConfiguration config)
        {
            _config = config;

            HttpClientHandler handler = new HttpClientHandler();
            handler.AllowAutoRedirect = true;
            handler.AutomaticDecompression = DecompressionMethods.GZip;
            _client = new HttpClient(handler);
        }
 static ConsulConfiguration()
 {
     instance = new ConsulConfiguration();
     instance.GetFromFile();
 }