private static ZKConnection EstablishConnection() { ZKConnection zkConnection = new ZKConnection(string.Format("{0}:{1}", TestUtil.ip, TestUtil.port)); new ZKClient(zkConnection);// connect return(zkConnection); }
private static ZKConnection EstablishConnection() { ZKConnection zkConnection = new ZKConnection(TestUtil.zkServers); zkConnection.Connect(new TestWatcher()); return(zkConnection); }