1 write to ParentProcess
dotnet (1)
Installer\Windows\InstallerBase.cs (1)
199
ParentProcess
= CurrentProcess.GetParentProcess();
6 references to ParentProcess
dotnet (6)
Commands\Workload\Install\MsiInstallerBase.cs (1)
70
protected static bool IsParentProcessRunning => Process.GetProcessById(
ParentProcess
.Id) != null;
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (1)
59
Log?.LogMessage($"Executing: {Microsoft.DotNet.Cli.Utils.Windows.GetProcessCommandLine()}, PID: {CurrentProcess.Id}, PPID: {
ParentProcess
.Id}");
Commands\Workload\Install\NetSdkMsiInstallerServer.cs (4)
171
if (
ParentProcess
== null ||
ParentProcess
.StartTime > CurrentProcess.StartTime ||
172
!string.Equals(
ParentProcess
.MainModule.FileName, Environment.ProcessPath, StringComparison.OrdinalIgnoreCase))
174
throw new SecurityException(string.Format(CliCommandStrings.NoTrustWithParentPID,
ParentProcess
?.Id));