Exemple #1
0
 private void InitValue()
 {
     try
     {
         username = Encoding.Default.GetString(zk.GetData("/config/user", true, null));
         password = Encoding.Default.GetString(zk.GetData("/config/passwd", true, null));
     }
     catch (Exception)
     {
     }
 }
Exemple #2
0
 public bool ExistLock()
 {
     if (zk.Exists("/custom/lock", true) == null)
     {
         return(false);
     }
     else
     {
         zk.GetData("/custom/lock", true, null);
         return(true);
     }
 }