public void Run() { SvcUtilMessageView.ClearText(); var commandLine = new SvcUtilCommandLine(Options); commandLine.Command = GetSvcUtilPath(); SvcUtilMessageView.AppendLine(commandLine.ToString()); ProcessRunner runner = CreateProcessRunner(); runner.Start(commandLine.Command, commandLine.Arguments); }
public async void Run() { SvcUtilMessageView.ClearText(); var commandLine = new SvcUtilCommandLine(Options); commandLine.Command = GetSvcUtilPath(); using (ProcessRunner processRunner = new ProcessRunner()) { this.ExitCode = await processRunner.RunInOutputPadAsync(SvcUtilMessageView.Category, commandLine.Command, commandLine.GetArguments()); } if (ProcessExited != null) { ProcessExited(this, new EventArgs()); } }