コード例 #1
0
 internal static void RpcCallWithRetry(Utils.RpcCallDelegate rpcDelegate, int maxRetry)
 {
     if (maxRetry <= 0)
     {
         throw new ArgumentException("maxRetry should be greater than 0");
     }
     for (int i = 0; i < maxRetry - 1; i++)
     {
         try
         {
             rpcDelegate();
             return;
         }
         catch (RpcConnectionException)
         {
         }
     }
     rpcDelegate();
 }
コード例 #2
0
 internal static void RpcCallWithRetry(Utils.RpcCallDelegate rpcDelegate)
 {
     Utils.RpcCallWithRetry(rpcDelegate, 3);
 }