/// <summary> /// execute ngrok.exe command no return /// </summary> internal static void ExecuteNgrokCommandNoReturn(NgrokCommand command) { lock (_lock) { Command.RunProcessNoReturn(@XiaomiController.Instance.ResourceDirectory + NGROK_EXE, command.Command, command.Timeout); } }
/// <summary> /// execute ngrok.exe command return output /// </summary> internal static string ExecuteNgrokCommand(NgrokCommand command) { string result = ""; lock (_lock) { result = Command.RunProcessReturnOutput(@XiaomiController.Instance.ResourceDirectory + NGROK_EXE, command.Command, command.Timeout); } return(result); }