示例#1
0
        static void Main(string[] args)
        {
            var communication = ThriftCommunication.Binary().OverHttp("http://*****:*****@justiceleague.com"
                },
                new Contact {
                    FirstName = "Clark", LastName = "Kent", Email = "*****@*****.**"
                }
            });
            foreach (var e in contacts)
            {
                Console.WriteLine(e);
            }
        }
示例#2
0
        public ImpalaClient(IPEndPoint host)
        {
            var comm = ThriftCommunication.Binary().UsingCustomTransport(token => new ThriftTcpTransport(host, _id));

            _impalaService = ThriftProxy.Create <IImpalaService>(comm);
        }