コード例 #1
0
        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);
        }
コード例 #2
0
        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());
            }
        }