Esempio n. 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)
     {
     }
 }
Esempio n. 2
0
File: Lock.cs Progetto: lazy111/test
 public bool ExistLock()
 {
     if (zk.Exists("/custom/lock", true) == null)
     {
         return(false);
     }
     else
     {
         zk.GetData("/custom/lock", true, null);
         return(true);
     }
 }