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