176 references to HasExited
aspire (21)
Commands\AppHostFollowDisconnectHelpers.cs (1)
40return process.HasExited;
DotNet\ProcessExecution.cs (3)
318if (process.HasExited) 391if (process.HasExited) 401if (process.HasExited)
Git\GitRepository.cs (1)
196if (!process.HasExited)
Processes\IsolatedProcess.cs (3)
159/// Mirrors <see cref="Process.HasExited"/>. The Windows spawn path overrides this with a 161/// because <see cref="Process.HasExited"/> on a <see cref="Process.GetProcessById(int)"/> 164public bool HasExited => _hasExitedProvider?.Invoke() ?? Process.HasExited;
Processes\IsolatedProcess.Unix.cs (3)
107ExitCodeProvider: () => dcpProcess.HasExited ? dcpProcess.ExitCode : childProcess.ExitCode, 108HasExitedProvider: () => dcpProcess.HasExited, 116if (!dcpProcess.HasExited)
src\Shared\BackchannelConstants.cs (1)
416return !process.HasExited;
src\Shared\ProcessSignaler.cs (4)
73if (process.HasExited) 97if (process.HasExited) 136if (process.HasExited) 150if (process.HasExited)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Utils\ProcessCaptureRunner.cs (1)
174if (!process.HasExited)
aspire-managed (4)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Aspire.Cli.Tests (20)
Acquisition\PeerInstallProbeTests.cs (2)
405Assert.True(process.HasExited); 447while (!process.HasExited && DateTimeOffset.UtcNow < deadline)
Commands\AppHostLauncherTests.cs (9)
583Assert.False(harness.ProcessFactory.StartedProcess?.HasExited); 683if (startedProcess is { HasExited: false }) 689if (forkProcess is { HasExited: false }) 791Assert.False(startedProcess.HasExited); 799Assert.True(startedProcess.HasExited); 1299if (StartedProcess is { HasExited: false }) 1475public bool HasExited => exitMonitorProcess?.HasExited ?? process.HasExited; 1481if (exitMonitorProcess is { HasExited: true } monitorProcess)
Processes\ParentProcessLivenessMonitorTests.cs (1)
144if (!parent.HasExited)
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
383if (process.HasExited)
Processes\WindowsConsoleProcessJobTests.cs (4)
37Assert.False(spawnedProcess.HasExited); 45Assert.True(spawnedProcess.HasExited); 57Assert.False(spawnedProcess.HasExited); 63Assert.True(spawnedProcess.HasExited);
Projects\AppHostServerSessionTests.cs (1)
505if (probe.HasExited)
tests\Shared\TestProcesses.cs (1)
65if (!process.HasExited)
TestServices\ProcessTestHelpers.cs (1)
57return probe.HasExited;
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
24return process.HasExited;
Aspire.Hosting (13)
Dcp\Process\ProcessUtil.cs (4)
257if (_process.HasExited) 280if (!_process.HasExited) 296if (!_process.HasExited) 309catch (InvalidOperationException) when (process.HasExited)
src\Shared\BackchannelConstants.cs (1)
416return !process.HasExited;
src\Shared\ProcessSignaler.cs (4)
73if (process.HasExited) 97if (process.HasExited) 136if (process.HasExited) 150if (process.HasExited)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Aspire.Hosting.Azure (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
257if (_process.HasExited) 280if (!_process.HasExited) 296if (!_process.HasExited) 309catch (InvalidOperationException) when (process.HasExited)
Aspire.Hosting.Browsers (2)
BrowserEndpointDiscovery.cs (1)
235return !process.HasExited;
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
250if (!process.HasExited)
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
235return !process.HasExited;
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
250if (!process.HasExited)
Aspire.Hosting.DevTunnels (1)
DevTunnelCli.cs (1)
266if (!process.HasExited)
Aspire.Hosting.Docker (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
257if (_process.HasExited) 280if (!_process.HasExited) 296if (!_process.HasExited) 309catch (InvalidOperationException) when (process.HasExited)
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
540if (process is not null && !process.HasExited) 565if (process is not null && !process.HasExited)
Aspire.Hosting.Foundry (3)
FoundryLocalService.cs (3)
24public static bool IsServiceRunning => Endpoint is not null && s_serviceProcess is { HasExited: false }; 33if (s_serviceProcess is { HasExited: false }) 347if (!process.HasExited)
Aspire.Hosting.Kubernetes (4)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (4)
257if (_process.HasExited) 280if (!_process.HasExited) 296if (!_process.HasExited) 309catch (InvalidOperationException) when (process.HasExited)
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
253if (!process.HasExited)
Aspire.Hosting.Radius (4)
Publishing\RadCredentialRegisterStep.cs (1)
310if (!process.HasExited)
Publishing\RadiusDeploymentPipelineStep.cs (1)
199if (!process.HasExited)
Publishing\SealedSecretApplyStep.cs (2)
859if (!process.HasExited) 961if (!process.HasExited)
Aspire.Hosting.RemoteHost (4)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Aspire.Hosting.Sdk.Tests (3)
AppHostSdkTargetsTests.cs (3)
844if (childProcess is not null && !childProcess.HasExited) 893Assert.False(survivingProcess.HasExited); 906if (process is not null && !process.HasExited)
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (1)
2387if (!process.HasExited)
tests\Shared\TestProcesses.cs (1)
65if (!process.HasExited)
WithTerminalTests.cs (1)
525if (!liveProcess.HasExited)
Aspire.Managed.Tests (3)
TerminalHostSignalTests.cs (3)
72if (!process.HasExited) 170if (!process.HasExited) 179if (!parentProcess.HasExited)
Aspire.Templates.Tests (3)
TemplateAppFixture.cs (2)
60if (Project!.AppHostProcess is null || Project.AppHostProcess.HasExited || Project.AppExited?.Task.IsCompleted == true) 62throw new InvalidOperationException($"The app host process is not running. {Project.AppHostProcess?.HasExited}, {Project.AppExited?.Task.IsCompleted}");
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
24return process.HasExited;
Aspire.TerminalHost (4)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Aspire.TestUtilities (1)
ProcessExtensions.cs (1)
18return process.HasExited;
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
dotnet (4)
Commands\Test\MTP\CtrlCCancellationManager.cs (1)
148if (!process.HasExited)
Commands\Test\MTP\TestApplication.cs (2)
167if (!process.HasExited) 199if (!process.HasExited)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26430.105\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
dotnet-aot (3)
src\sdk\src\Cli\dotnet\Commands\Test\MTP\CtrlCCancellationManager.cs (1)
148if (!process.HasExited)
src\sdk\src\Cli\dotnet\Commands\Test\MTP\TestApplication.cs (2)
167if (!process.HasExited) 199if (!process.HasExited)
dotnet-format (1)
Utilities\ProcessRunner.cs (1)
128if (!process.HasExited)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
ProcessExtensions.cs (1)
15return process.HasExited;
Microsoft.AspNetCore.Components.Testing (3)
Infrastructure\ParentProcessWatcher.cs (1)
37if (parent.HasExited)
Infrastructure\ServerInstance.cs (2)
123$"Process still running: {!_process.HasExited}. " + 134if (_process is { HasExited: false })
Microsoft.AspNetCore.Server.IntegrationTesting (8)
Deployers\ApplicationDeployer.cs (2)
117if (hostProcess != null && !hostProcess.HasExited) 123if (!hostProcess.HasExited)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
261if (runScriptsOnRemoteServerProcess.HasExited && runScriptsOnRemoteServerProcess.ExitCode != 0)
Deployers\SelfHostDeployer.cs (1)
184if (HostProcess.HasExited)
src\aspnetcore\src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Microsoft.AspNetCore.SpaProxy (6)
SpaProxyLaunchManager.cs (6)
132while (_spaProcess != null && !_spaProcess.HasExited && !maxTimeoutReached) 149if (_spaProcess == null || _spaProcess.HasExited) 200if (_spaProcess != null && !_spaProcess.HasExited && !_options.KeepRunning) 247if (stopProcess == null || stopProcess.HasExited) 309if (stopProcess == null || stopProcess.HasExited) 334if (_spaProcess != null && !_spaProcess.HasExited)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
147if (_npmProcess != null && !_npmProcess.HasExited)
Microsoft.Build (3)
BackEnd\Client\MSBuildClient.cs (1)
847if (launched.HasExited)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
416if (msbuildProcess.HasExited) 1438if (_process.HasExited)
Microsoft.Build.Framework (1)
Utilities\ProcessExtensions.cs (1)
95if (process?.HasExited != false)
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
824while (!signTool.HasExited)
Microsoft.Build.Utilities.Core (3)
ToolTask.cs (3)
1033if (!proc.HasExited) 1077if (proc.HasExited) 1151while (!proc.HasExited)
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\BuildHostProcessManager.cs (4)
517if (_process.HasExited) 538if (!_process.HasExited) 544if (!_process.HasExited) 564if (!_process.HasExited)
Microsoft.DotNet.HotReload.Watch (4)
Browser\BrowserLauncher.cs (1)
101if (browserProcess is null or { HasExited: true })
Process\ProcessRunner.cs (3)
278return process.HasExited; 293if (process.HasExited) 325if (!state.HasExited && !process.HasExited)
Microsoft.Extensions.AI.Templates.Tests (1)
ProcessExtensions.cs (1)
15return process.HasExited;
Microsoft.TestPlatform.Extensions.BlameDataCollector (6)
BlameCollector.cs (1)
319if (!p.HasExited)
ProcDumpDumper.cs (3)
169if (_procDumpProcess.HasExited) 197if (_procDumpProcess.HasExited) 227if (!_procDumpProcess.HasExited)
ProcessCodeMethods.cs (1)
26if (process.HasExited)
WindowsHangDumper.cs (1)
111if (process.HasExited)
Microsoft.TestPlatform.PlatformAbstractions (3)
common\System\ProcessHelper.cs (3)
279if (process is Process proc && proc.HasExited) 316if (process is Process proc && !proc.HasExited) 352if (process is Process proc && !proc.HasExited)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
224if (_process != null && !_process.HasExited)
MSBuild.Coordinator (1)
CoordinatorServer.cs (1)
569return !process.HasExited;
NuGet.Build.Tasks (1)
StaticGraphRestoreTaskBase.cs (1)
198if (!process.HasExited)
NuGet.Credentials (2)
PluginCredentialProvider.cs (2)
279if (!process.HasExited) 319if (p.HasExited)
NuGet.Protocol (1)
Plugins\PluginProcess.cs (1)
140if (!_process.HasExited && !_process.WaitForExit(milliseconds: 1000))
System.Diagnostics.Process (4)
System\Diagnostics\Process.cs (4)
953if (!HasExited) 1716if (!HasExited) 1733if (HasExited) 1749if (HasExited)
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
91if (!pingProcess.HasExited)
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))