Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a ThriftCommunication for a plugin.
        /// </summary>
        public ThriftCommunication CreateCommunication(string pluginName)
        {
            string url = string.Format(ThriftServerUrlFormat, _settings.Configuration.Protocol, _settings.Configuration.Address, _settings.Configuration.Port, pluginName);

            return(ThriftCommunication.Binary().OverHttp(url, ThriftConnectionTimeout, _headers));
        }
Ejemplo n.º 3
0
        public ImpalaClient(IPEndPoint host)
        {
            var comm = ThriftCommunication.Binary().UsingCustomTransport(token => new ThriftTcpTransport(host, _id));

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