private void StartNode(StressTestNode node) { string args = "StartConsensus port=" + node.Port; var proc = System.Diagnostics.Process.Start(node.ApplicationFolder + "/DEXR.exe", args); node.Process = proc; node.Status = "Started"; }
private void StopNode(StressTestNode node) { if (node.Status == "Started") { node.Process.CloseMainWindow(); node.Process.Close(); node.Status = "Stopped"; } }