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); } }
/// <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)); }
public ImpalaClient(IPEndPoint host) { var comm = ThriftCommunication.Binary().UsingCustomTransport(token => new ThriftTcpTransport(host, _id)); _impalaService = ThriftProxy.Create <IImpalaService>(comm); }