示例#1
0
文件: Client.cs 项目: lazy111/test
 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)
     {
     }
 }
示例#2
0
文件: Lock.cs 项目: lazy111/test
 public bool ExistLock()
 {
     if (zk.Exists("/custom/lock", true) == null)
     {
         return(false);
     }
     else
     {
         zk.GetData("/custom/lock", true, null);
         return(true);
     }
 }