264 references to HasExited
aspire (20)
Commands\AppHostFollowDisconnectHelpers.cs (1)
29return process.HasExited;
src\Shared\BackchannelConstants.cs (1)
418return !process.HasExited;
src\Shared\ChildProcess.cs (9)
88public bool HasExited => Process.HasExited; 360if (!process.HasExited) 408if (!process.HasExited) 413catch (InvalidOperationException) when (process.HasExited) 471catch (Win32Exception ex) when (OperatingSystem.IsMacOS() && ex.NativeErrorCode == 1 && process.HasExited) 504if (process.HasExited) 516if (process.HasExited) 574if (_options.Lifetime == ChildProcessLifetime.OwnedTree && !process.HasExited) 593else if (!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)
183if (!process.HasExited)
aspire-managed (5)
Program.cs (1)
56if (!process.HasExited)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
aspire-tray (8)
src\Aspire.Tray\Common\CliAppHostCommands.cs (1)
140return new(StopOutcome.Incompatible, process.HasExited ? process.ExitCode : null);
src\Aspire.Tray\Common\CliProcess.cs (2)
46if (!process.HasExited) 52catch (InvalidOperationException) when (process.HasExited)
src\Aspire.Tray\Common\TrayProcessIdentity.cs (3)
31catch (InvalidOperationException) when (process.HasExited) 36if (process.HasExited) 47catch (InvalidOperationException) when (process.HasExited)
src\Aspire.Tray\Common\WindowsLoginBootstrap.cs (2)
48if (!process.HasExited) 53catch (InvalidOperationException) when (process.HasExited)
Aspire.Cli.EndToEnd.Tests (1)
Helpers\LocalDeploymentTestHelpers.cs (1)
107if (!process.HasExited)
Aspire.Cli.Tests (36)
Acquisition\PeerInstallProbeTests.cs (2)
405Assert.True(process.HasExited); 447while (!process.HasExited && DateTimeOffset.UtcNow < deadline)
Commands\AppHostLauncherTests.cs (10)
569Assert.False(harness.ProcessFactory.StartedProcess?.HasExited); 669if (startedProcess is { HasExited: false }) 675if (forkProcess is { HasExited: false }) 777Assert.False(startedProcess.HasExited); 785Assert.True(startedProcess.HasExited); 834Assert.False(harness.ProcessFactory.StartedProcess?.HasExited); 1464if (StartedProcess is { HasExited: false }) 1640public bool HasExited => exitMonitorProcess?.HasExited ?? process.HasExited; 1646if (exitMonitorProcess is { HasExited: true } monitorProcess)
Commands\CompletionScriptTests.cs (1)
336if (!process.HasExited)
Processes\ParentProcessLivenessMonitorTests.cs (1)
144if (!parent.HasExited)
Processes\ProcessTreeGracefulShutdownServiceTests.cs (4)
50Assert.False(cliProcess.HasExited); 84Assert.False(appHostProcess.HasExited); 85Assert.False(cliProcess.HasExited); 458if (process.HasExited)
Projects\AppHostServerProjectTests.cs (1)
147if (!process.HasExited)
Projects\AppHostServerSessionTests.cs (1)
577if (probe.HasExited)
Projects\JavaAppHostToolchainResolverTests.cs (1)
662if (!process.HasExited)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
996if (!process.HasExited)
tests\Shared\Processes\ChildProcessTests.cs (2)
143Assert.True(observedProcess.HasExited); 377Assert.False(worker.HasExited);
tests\Shared\Processes\ProcessTestFixture.cs (5)
136if (process.HasExited) 143Assert.True(process.HasExited, $"Cannot inspect test process {identity.ProcessId}."); 152Assert.True(process.HasExited); 165if (!process.HasExited && 202if (!process.HasExited)
tests\Shared\TemporaryWorkspaceGitExtensions.cs (3)
74if (!process.HasExited) 79catch (Exception cleanupException) when ((cleanupException is InvalidOperationException or Win32Exception) && process.HasExited) 110outputHelper.WriteLine($"[{DateTimeOffset.UtcNow:O}] '{command}' (PID {process.Id}) finished after {stopwatch.Elapsed}; exit code: {(process.HasExited ? process.ExitCode.ToString() : "still running")}");
tests\Shared\TestProcesses.cs (1)
65if (!process.HasExited)
TestServices\ProcessTestHelpers.cs (1)
73return probe.HasExited;
Utils\TemporaryWorkspaceTests.cs (2)
153Assert.True(process.HasExited); 164if (!process.HasExited)
Aspire.Dashboard (4)
src\Shared\ProcessStartTimeHelper.cs (4)
169if (process.HasExited) 192if (process.HasExited) 238if (process.HasExited) 249return !process.HasExited;
Aspire.Dashboard.Tests (2)
Integration\Playwright\NativeAotDashboardTests.cs (2)
112if (!dashboardProcess.HasExited) 187if (dashboardProcess.HasExited)
Aspire.Deployment.EndToEnd.Tests (2)
AcaExpressDeploymentTests.cs (1)
442if (!process.HasExited)
Helpers\DotnetProjectDeploymentHelpers.cs (1)
132if (!process.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)
418return !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.Azure.Tests (2)
FoundryExtensionsTests.cs (1)
206if (!daemon.HasExited)
RemoteTestOutputHelperTests.cs (1)
24Assert.True(handle.Process.HasExited);
Aspire.Hosting.Browsers (2)
BrowserEndpointDiscovery.cs (1)
235return !process.HasExited;
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
248if (!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)
248if (!process.HasExited)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
173if (!process.HasExited)
Aspire.Hosting.DevTunnels (1)
DevTunnelCli.cs (1)
278if (!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.Dotnet (1)
DotnetProjectRunPropertiesResolver.cs (1)
95if (!process.HasExited)
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
626if (process is not null && !process.HasExited) 651if (process is not null && !process.HasExited)
Aspire.Hosting.Foundry (1)
FoundryLocalService.cs (1)
700if (!process.HasExited)
Aspire.Hosting.JavaScript.Tests (2)
AddDenoAppTests.cs (2)
2729if (!process.HasExited) 2735catch (InvalidOperationException) when (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)
288if (!process.HasExited)
Aspire.Hosting.Radius (5)
Publishing\RadCredentialRegisterStep.cs (1)
307if (!process.HasExited)
Publishing\RadiusDeploymentPipelineStep.cs (2)
384if (!process.HasExited) 604if (!process.HasExited)
Publishing\SealedSecretApplyStep.cs (2)
725if (!process.HasExited) 827if (!process.HasExited)
Aspire.Hosting.RemoteHost (17)
src\Shared\ChildProcess.cs (9)
88public bool HasExited => Process.HasExited; 360if (!process.HasExited) 408if (!process.HasExited) 413catch (InvalidOperationException) when (process.HasExited) 471catch (Win32Exception ex) when (OperatingSystem.IsMacOS() && ex.NativeErrorCode == 1 && process.HasExited) 504if (process.HasExited) 516if (process.HasExited) 574if (_options.Lifetime == ChildProcessLifetime.OwnedTree && !process.HasExited) 593else if (!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.RemoteHost.Tests (11)
tests\Shared\Processes\ChildProcessTests.cs (2)
143Assert.True(observedProcess.HasExited); 377Assert.False(worker.HasExited);
tests\Shared\Processes\ProcessTestFixture.cs (5)
136if (process.HasExited) 143Assert.True(process.HasExited, $"Cannot inspect test process {identity.ProcessId}."); 152Assert.True(process.HasExited); 165if (!process.HasExited && 202if (!process.HasExited)
TestServices\IntegrationHostProcessFixture.cs (4)
121if (!process.HasExited) 341if (_server.HasExited) 424Assert.True(process.HasExited); 445if (!_server.HasExited)
Aspire.Hosting.Sdk.Tests (3)
AppHostSdkTargetsTests.cs (3)
917if (childProcess is not null && !childProcess.HasExited) 966Assert.False(survivingProcess.HasExited); 979if (process is not null && !process.HasExited)
Aspire.Hosting.Tests (6)
DistributedApplicationTests.cs (1)
2398if (!process.HasExited)
Terminals\Hex1bAspireTerminalTests.cs (3)
313Assert.False(process.HasExited); 317Assert.True(process.HasExited); 322if (!process.HasExited)
tests\Shared\TestProcesses.cs (1)
65if (!process.HasExited)
WithTerminalTests.cs (1)
624if (!liveProcess.HasExited)
Aspire.Managed.Tests (3)
TerminalHostSignalTests.cs (3)
72if (!process.HasExited) 171if (!process.HasExited) 180if (!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;
Aspire.Tray.Tests (27)
CliAppHostClientTests.cs (3)
57Assert.True(process.HasExited); 187Assert.True(process.HasExited); 202Assert.True(process.HasExited);
CliAppHostCommandsTests.cs (7)
110Assert.True(process.HasExited); 111Assert.False(otherProcess.HasExited); 143Assert.True(process.HasExited); 173Assert.True(process.HasExited); 289Assert.True(process.HasExited); 290Assert.False(detached.HasExited); 329Assert.True(process.HasExited);
Helpers\TestNativeCommand.cs (1)
34if (!process.HasExited)
MacTrayLauncherTests.cs (1)
189Assert.False(unrelated.HasExited);
src\Aspire.Tray\Common\CliAppHostCommands.cs (1)
140return new(StopOutcome.Incompatible, process.HasExited ? process.ExitCode : null);
src\Aspire.Tray\Common\CliProcess.cs (2)
46if (!process.HasExited) 52catch (InvalidOperationException) when (process.HasExited)
src\Aspire.Tray\Common\TrayProcessIdentity.cs (3)
31catch (InvalidOperationException) when (process.HasExited) 36if (process.HasExited) 47catch (InvalidOperationException) when (process.HasExited)
src\Aspire.Tray\Common\WindowsLoginBootstrap.cs (2)
48if (!process.HasExited) 53catch (InvalidOperationException) when (process.HasExited)
TrayActivationTests.cs (1)
284Assert.False(process.HasExited);
TrayProcessIdentityTests.cs (2)
22Assert.False(process.HasExited); 34Assert.False(process.HasExited);
WindowsTrayLauncherTests.cs (4)
81Assert.False(child.HasExited); 127Assert.True(child.HasExited); 128Assert.False(unrelated.HasExited); 156Assert.True(child.HasExited);
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
172while (!process.HasExited && WasServerMutexOpen(mutexName))
dotnet-aot (3)
parent\dotnet\Commands\Test\MTP\CtrlCCancellationManager.cs (1)
148if (!process.HasExited)
parent\dotnet\Commands\Test\MTP\TestApplication.cs (2)
169if (!process.HasExited) 201if (!process.HasExited)
dotnet-format (1)
Utilities\ProcessRunner.cs (1)
128if (!process.HasExited)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\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)
51if (proc.HasExited) 72public bool HasExited => _process.HasExited; 210if (!_process.HasExited) 257if (_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)
474if (msbuildProcess.HasExited) 1592if (_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)
536if (_process.HasExited) 557if (!_process.HasExited) 563if (!_process.HasExited) 586if (!_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)
test\ProjectTemplates\Infrastructure\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)
301if (process is Process proc && proc.HasExited) 338if (process is Process proc && !proc.HasExited) 374if (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))