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