Renamed Create to Start to match Process.Start and added a Start function to accept and existing process instead of having a new one be created. Bumped package version to 1.0.2

This commit is contained in:
2024-09-11 18:37:36 -07:00
parent a5fa55e3e9
commit c6e7e50322
3 changed files with 17 additions and 6 deletions

View File

@ -15,7 +15,7 @@ namespace MontoyaTech.Process.Net.Example
RedirectStandardInput = true,
};
var process = WinProcess.Create(startInfo, creationFlags: WinProcess.CreationFlags.CREATE_NEW_CONSOLE);
var process = WinProcess.Start(startInfo, creationFlags: WinProcess.CreationFlags.CREATE_NEW_CONSOLE);
process.StandardInput.WriteLine("This is a test");
process.StandardInput.WriteLine("Does this work?");