1 write to CurrentProcess
Infrastructure.Tests (1)
PowerShellScripts\PowerShellCommand.cs (1)
90CurrentProcess = CreateProcess(fullArgs);
15 references to CurrentProcess
Infrastructure.Tests (15)
PowerShellScripts\PowerShellCommand.cs (15)
77CurrentProcess?.CloseAndKillProcessIfRunning(); 92CurrentProcess.ErrorDataReceived += (s, e) => 107CurrentProcess.OutputDataReceived += (s, e) => 127CurrentProcess.EnableRaisingEvents = true; 128CurrentProcess.Exited += (s, a) => 134CurrentProcess.Start(); 135CurrentProcess.BeginOutputReadLine(); 136CurrentProcess.BeginErrorReadLine(); 141var waitForExitTask = CurrentProcess.WaitForExitAsync(token); 151CurrentProcess.StartInfo, 152CurrentProcess.ExitCode, 163if (!CurrentProcess.TryGetHasExited()) 168CurrentProcess.CloseMainWindow(); 172CurrentProcess.Kill(entireProcessTree: true); 174CurrentProcess.Dispose();