예제 #1
0
 /// <summary>
 /// 重建短路径
 /// </summary>
 /// <param name="client"></param>
 /// <returns></returns>
 private bool reCreate(SlaveServer.TcpInternalClient client)
 {
     try
     {
         do
         {
             socketIdentity = Client.SocketIdentity;
             AutoCSer.Net.TcpServer.ReturnValue <ReturnParameter> value = client.Query(new OperationParameter.QueryNode {
                 Node = Parameter
             });
             if (socketIdentity == Client.SocketIdentity)
             {
                 return(isCreate(ref value));
             }
         }while (true);
     }
     catch (Exception error)
     {
         client._TcpClient_.AddLog(error);
     }
     finally { Monitor.Exit(createLock); }
     return(false);
 }
예제 #2
0
 /// <summary>
 /// 查询数据
 /// </summary>
 /// <param name="node"></param>
 internal override AutoCSer.Net.TcpServer.ReturnValue <ReturnParameter> Query(DataStructure.Abstract.Node node)
 {
     return(client.Query(new OperationParameter.QueryNode {
         Node = node
     }));
 }