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(); }
internal static void RpcCallWithRetry(Utils.RpcCallDelegate rpcDelegate) { Utils.RpcCallWithRetry(rpcDelegate, 3); }