125 references to HasExited
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\TestExtensions.cs (1)
25return process.HasExited;
Aspire.Hosting (2)
Dcp\Process\ProcessUtil.cs (2)
138if (_process.HasExited) 156if (!_process.HasExited)
Aspire.Hosting.Azure (2)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
138if (_process.HasExited) 156if (!_process.HasExited)
Aspire.Workload.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\WorkloadTesting\TestExtensions.cs (1)
25return process.HasExited;
HelixTestRunner (2)
ProcessUtil.cs (2)
197if (!process.HasExited) 201if (!process.HasExited)
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (1)
68Assert.True(result.HostProcess.HasExited);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (2)
20Assert.True(deploymentResult.HostProcess.HasExited); 39Assert.True(deploymentResult.HostProcess.HasExited);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
InteropTests (4)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Microsoft.AspNetCore.Hosting.FunctionalTests (2)
LinkedApplicationTests.cs (1)
44Assert.False(deployer.HostProcess.HasExited);
ShutdownTests.cs (1)
137if (!process.HasExited)
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\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISDeployer.cs (1)
442if (HostProcess is not null && !HostProcess.HasExited)
IISExpressDeployer.cs (3)
233if (process.HasExited) 440if (_hostProcess != null && !_hostProcess.HasExited) 550if (hostProcess != null && !hostProcess.HasExited)
ProcessTracker.cs (1)
59if (!success && !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.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\Executable.cs (1)
74if (process != null && !process.HasExited)
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
354if (msbuildProcess.HasExited) 896if (_process.HasExited)
Microsoft.Build.CommandLine.UnitTests (2)
MSBuildServer_Tests.cs (2)
251serverProcess.HasExited.ShouldBeFalse(); 265serverProcess.HasExited.ShouldBeTrue();
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
801while (!signTool.HasExited)
Microsoft.Build.Utilities.Core (3)
ToolTask.cs (3)
978if (!proc.HasExited) 1023if (proc.HasExited) 1059while (!proc.HasExited)
Microsoft.Build.Utilities.UnitTests (2)
ProcessExtensions_Tests.cs (2)
28p.HasExited.ShouldBe(false); 32p.HasExited.ShouldBe(true);
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.cs (1)
204exitCode = process.HasExited ? process.ExitCode : (int?)null;
Interactive\Core\InteractiveHost.RemoteService.cs (1)
283if (!process.HasExited)
Interactive\Core\ProcessExtensions.cs (1)
15return !process.HasExited;
Microsoft.CodeAnalysis.Remote.Workspaces (1)
BrokeredServiceConnection.cs (1)
400if (_remoteProcess?.HasExited == true && NativeMethods.GetExitCodeProcess(_remoteProcessHandle!, out var exitCode))
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessUtilities.cs (1)
87Debug.Assert(process.HasExited);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
97if (process.HasExited) 430if (!_process.HasExited) 460if (!_process.HasExited)
Microsoft.DotNet.ArcadeAzureIntegration (1)
AzureCliCredentialWithAzNoUpdateWrapper.cs (1)
98if (!process.HasExited)
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
481if (ct.IsCancellationRequested && !process.HasExited)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
ProcessEx.cs (2)
42public bool HasExited => _process.HasExited; 127if (_process != null && !_process.HasExited)
Microsoft.Extensions.ApiDescription.Client.Tests (4)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
Infrastructure\RedisTestConfig.cs (3)
53&& !_redisServerProcess.HasExited) 95if (process == null || process.HasExited) 182if (_redisServerProcess.HasExited)
Microsoft.VisualBasic.IntegrationTests (5)
InteractionTests.cs (1)
52Assert.True(process.HasExited);
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBaseTests.cs (3)
18Assert.True(process.HasExited); 29Assert.True(process0.HasExited); 30Assert.True(process1.HasExited);
Microsoft\VisualBasic\MyServices\Internal\ProgressDialogTests.cs (1)
17Assert.True(process.HasExited);
RunTests (1)
ProcessRunner.cs (1)
145if (!process.HasExited)
System.Diagnostics.Process (4)
System\Diagnostics\Process.cs (4)
994if (!HasExited) 1511if (!HasExited) 1528if (HasExited) 1544if (HasExited)
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
91if (!pingProcess.HasExited)
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
426if (process.HasExited)
Templates.Blazor.Tests (4)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Templates.Blazor.WebAssembly.Auth.Tests (6)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited."; 210if (process?.HasExited == false)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Templates.Blazor.WebAssembly.Tests (6)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited."; 210if (process?.HasExited == false)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Templates.Mvc.Tests (6)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited."; 210if (process?.HasExited == false)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)
Templates.Tests (6)
src\Shared\E2ETesting\SauceConnectServer.cs (2)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited."; 210if (process?.HasExited == false)
src\Shared\Process\ProcessEx.cs (4)
52if (proc.HasExited) 73public bool HasExited => _process.HasExited; 197if (!_process.HasExited) 244if (_process != null && !_process.HasExited)