Flush Async Output Events
The System.Diagnostics.Process class provides the options to retrieve all output from an external process after it has completed, or to retrieve events containing the output as the execution occurs. The option to receive asynchronous output events is useful in scenarios where you need to provide user feedback or log the output when timeouts occur. When receiving asynchronous output events, you must ensure that the external process has completed when you want to make sure that you get all the output....