42 references to DotnetFileAppProcess
Aspire.Hosting.Tests (42)
Dcp\ProcessCaptureTests.cs (15)
23var app = DotnetFileAppProcess.WriteApp(workspace.Path, "echo.cs", """ 34var result = await runner.RunAndCaptureTextAsync(DotnetFileAppProcess.ResolvedExecutablePath, 35DotnetFileAppProcess.CreateArguments(app), workspace.Path, standardInput: Encoding.UTF8.GetBytes(input), 47var app = DotnetFileAppProcess.WriteApp(workspace.Path, "environment.cs", """ 53var result = await new DefaultProcessRunner().RunAndCaptureTextAsync(DotnetFileAppProcess.ResolvedExecutablePath, 54DotnetFileAppProcess.CreateArguments(app, arguments), workspace.Path, 67var app = DotnetFileAppProcess.WriteApp(workspace.Path, "pressure.cs", """ 87var result = await new DefaultProcessRunner().RunAndCaptureTextAsync(DotnetFileAppProcess.ResolvedExecutablePath, 88DotnetFileAppProcess.CreateArguments(app, [errorFirst.ToString()]), workspace.Path, 100var app = DotnetFileAppProcess.WriteApp(workspace.Path, "reject.cs", """ 111var result = await new DefaultProcessRunner().RunAndCaptureTextAsync(DotnetFileAppProcess.ResolvedExecutablePath, 112DotnetFileAppProcess.CreateArguments(app), workspace.Path, standardInput: new byte[inputSize], cancellationToken: cancellation.Token); 137var app = DotnetFileAppProcess.WriteApp(workspace.Path, "cancel.cs", """ 163var capture = new DefaultProcessRunner().RunAndCaptureTextAsync(DotnetFileAppProcess.ResolvedExecutablePath, 164DotnetFileAppProcess.CreateArguments(app, [name]), workspace.Path, standardInput: new byte[2000000], cancellationToken: cancellation.Token);
Dcp\ProcessUtilTests.cs (17)
105var appPath = DotnetFileAppProcess.WriteApp(workspace.WorkspaceRoot.FullName, "argument-list.cs", """ 110var spec = DotnetFileAppProcess.CreateDcpProcessSpec(appPath, ["argument-list-value"], onOutputData: outputLines.Add); 127var appPath = DotnetFileAppProcess.WriteApp(workspace.WorkspaceRoot.FullName, "argument-list-failure.cs", """ 131var spec = DotnetFileAppProcess.CreateDcpProcessSpec( 152var appPath = DotnetFileAppProcess.WriteApp(workspace.WorkspaceRoot.FullName, "path-executable.cs", """ 156var dotnetPath = DotnetFileAppProcess.ResolvedExecutablePath; 162ArgumentList = DotnetFileAppProcess.CreateArguments(appPath), 224var app = DotnetFileAppProcess.WriteApp(workspace.Path, "legacy-lines.cs", """ 231var spec = new ProcessSpec(DotnetFileAppProcess.ResolvedExecutablePath) 233ArgumentList = DotnetFileAppProcess.CreateArguments(app), 254var (executable, arguments) = await DotnetFileAppProcess.CreateInputRejectingProcessAsync(workspace.Path, exitCode.ToString(), TestContext.Current.CancellationToken); 295var (executable, arguments) = await DotnetFileAppProcess.CreateInputRejectingProcessAsync(workspace.Path, "wait", TestContext.Current.CancellationToken); 347var (executable, arguments) = await DotnetFileAppProcess.CreateDescendantHoldingStreamsProcessAsync( 446var appPath = DotnetFileAppProcess.WriteApp(workspace.WorkspaceRoot.FullName, "single-line.cs", """ 451return DotnetFileAppProcess.CreateDcpProcessSpec(appPath, onOutputData: onOutputData, onStart: onStart); 461var appPath = DotnetFileAppProcess.WriteApp(workspace.WorkspaceRoot.FullName, "failing.cs", $$""" 481return DotnetFileAppProcess.CreateDcpProcessSpec(
DistributedApplicationTests.cs (3)
2174var executableAppPath = DotnetFileAppProcess.WriteApp(executableDir.FullName, "worker.cs", """ 2233builder.AddExecutable(executableResourceName, DotnetFileAppProcess.ExecutablePath, executableDir.FullName, DotnetFileAppProcess.CreateArguments(executableAppPath))
MSBuildTests.cs (1)
1310var dotnetPath = DotnetFileAppProcess.ResolvedExecutablePath;
Publishing\ResourceContainerImageManagerTests.cs (2)
1663var probe = new ProcessSpec(DotnetFileAppProcess.ResolvedExecutablePath) 1737var probe = new ProcessSpec(DotnetFileAppProcess.ResolvedExecutablePath)
WithProcessCommandTests.cs (4)
1497var (executable, arguments) = await DotnetFileAppProcess.CreateInputRejectingProcessAsync(workspace.Path, exitCode, TestContext.Current.CancellationToken); 1557var appPath = DotnetFileAppProcess.WriteApp(workspace.Path, "blocked-input.cs", """ 1568.WithProcessCommand("wait", "Wait", _ => new ProcessCommandSpec(DotnetFileAppProcess.ResolvedExecutablePath) 1570Arguments = DotnetFileAppProcess.CreateArguments(appPath, [pipeName]),