We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b67fca commit d63ff37Copy full SHA for d63ff37
src/BenchmarksApps/TLS/Kestrel/Program.cs
@@ -8,14 +8,14 @@
8
9
Console.WriteLine("Starting application...");
10
11
-ProcessStartInfo startInfo = new ProcessStartInfo()
+ProcessStartInfo processInfo = new ProcessStartInfo()
12
{
13
FileName = "/bin/bash",
14
Arguments = "openssl version",
15
RedirectStandardOutput = true,
16
RedirectStandardError = true,
17
};
18
-Process process = new Process() { StartInfo = startInfo, };
+using Process process = Process.Start(processInfo)!;
19
string output = process.StandardOutput.ReadToEnd();
20
process.WaitForExit();
21
Console.WriteLine(output);
0 commit comments