private void run(Process proc, string arguments, Action<string> onLineReceived)
{
Logger.Write("Running {0} {1}", _path, arguments);
execute(
proc,
_path,
arguments,
(error, x) => {
if (error) {
Logger.Write(
string.Format("Failed running {0} with {1}", _path, arguments));
Logger.Write(x);
return;
}
onLineReceived(x);
});
Logger.Write("Done - Running {0} {1}", _path, arguments);
}