1 write to Process
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
91Process = ProcessEx.Run(output, workingDirectory, process, arguments, envVars: finalEnvironmentVariables);
32 references to Process
Templates.Tests (32)
EmptyWebTemplateTest.cs (4)
105aspNetProcess.Process.HasExited, 106ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", project, aspNetProcess.Process)); 114aspNetProcess.Process.HasExited, 115ErrorMessages.GetFailedProcessMessageOrEmpty("Run published project", project, aspNetProcess.Process));
GrpcTemplateTest.cs (10)
105serverProcess.Process.WaitForExit(assertSuccess: false); 106Assert.True(serverProcess.Process.HasExited, "built"); 108ErrorMessages.GetFailedProcessMessageOrEmpty("Run built service", project, serverProcess.Process)); 113serverProcess.Process.HasExited, 114ErrorMessages.GetFailedProcessMessageOrEmpty("Run built service", project, serverProcess.Process)); 123aspNetProcess.Process.WaitForExit(assertSuccess: false); 124Assert.True(aspNetProcess.Process.HasExited, "published"); 126ErrorMessages.GetFailedProcessMessageOrEmpty("Run published service", project, aspNetProcess.Process)); 131aspNetProcess.Process.HasExited, 132ErrorMessages.GetFailedProcessMessageOrEmpty("Run published service", project, aspNetProcess.Process));
IdentityUIPackageTest.cs (4)
128aspNetProcess.Process.HasExited, 129ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", project, aspNetProcess.Process)); 140aspNetProcess.Process.HasExited, 141ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", project, aspNetProcess.Process));
src\ProjectTemplates\Shared\AspNetProcess.cs (6)
216foreach (var line in Process.OutputLinesAsEnumerable) 275Process.Dispose(); 281result += Process != null ? "Active: " : "Inactive"; 282if (Process != null) 284if (!Process.HasExited) 286result += $"(Listening on {ListeningUri.OriginalString}) PID: {Process.Id}";
WebApiNativeAotTemplateTest.cs (4)
78aspNetProcess.Process.HasExited, 79ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", project, aspNetProcess.Process)); 86aspNetProcess.Process.HasExited, 87ErrorMessages.GetFailedProcessMessageOrEmpty("Run published project", project, aspNetProcess.Process));
WorkerTemplateTest.cs (4)
78aspNetProcess.Process.HasExited, 79ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", project, aspNetProcess.Process)); 85aspNetProcess.Process.HasExited, 86ErrorMessages.GetFailedProcessMessageOrEmpty("Run published project", project, aspNetProcess.Process));