public ClientConnectionRequestProducer(ClientConnection conn)
 {
     this.conn = conn;
     zooKeeper = conn.zooKeeper;
     zkEndpoints = new ZooKeeperEndpoints(conn.serverAddrs);
     requestThread = new Thread(new SafeThreadStart(SendRequests).Run) { Name = new StringBuilder("ZK-SendThread ").Append(conn.zooKeeper.Id).ToString(), IsBackground = true };
 }
 public void Init()
 {
     //create endpoints
     zkEndpoints = new ZooKeeperEndpoints(ips.ConvertAll(x => IPAddress.Parse(x))
                                          .ConvertAll(y => new IPEndPoint(y, port)));
 }
 public ZooKeeperEndpointProvider()
 {
     zkEndpoints = new ZooKeeperEndpoints(ips.ConvertAll(x => IPAddress.Parse(x))
      .ConvertAll(y => new IPEndPoint(y, port)));
 }