public ZkClient(IZkConnection zkConnection, int connectionTimeout, IZkSerializer zkSerializer)
 {
     this._connection  = zkConnection;
     this.ZkSerializer = zkSerializer;
     this.EventLock    = new ZkLock();
     this.Connect(connectionTimeout, this);
 }
 public ZkClient(string zkServers, int sessionTimeout, int connectionTimeout, IZkSerializer zkSerializer)
     : this(new ZkConnection(zkServers, TimeSpan.FromMilliseconds(sessionTimeout)), connectionTimeout, zkSerializer)
 {
 }