Beispiel #1
0
 private static void WaitRpcConnectSuccess(List <RpcService.RpcServiceClient> clients)
 {
     while (true)
     {
         try
         {
             foreach (var client in clients)
             {
                 var strg = new Strg {
                     Str = ""
                 };
                 try
                 {
                     client.Test(strg);
                 }
                 catch (Exception)
                 {
                     Util.Log($"Fail to connect {client}");
                     throw;
                 }
             }
         }
         catch (Exception ex)
         {
             Util.Log($"rpc connection ex: {ex}");
             continue;
         }
         break;
     }
 }
Beispiel #2
0
 public override Task <Stat> Test(Strg strg, ServerCallContext context)
 {
     return(Task.FromResult(new Stat {
         State = Stat.Types.State.DebugTodo
     }));
 }