Asynchronously captures output and waits for the external process to exit or a specified timeout period to elapse.
Task<BufferedProcessResult> CaptureBufferedResultAsync(CancellationToken cancellationToken, long? maxStandardOutputBytes = default(long? ), long? maxStandardErrorBytes = default(long? ))
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
An optional maximum number of bytes to capture from standard output before truncating.
null means no cap is applied.
An optional maximum number of bytes to capture from standard error before truncating.
null means no cap is applied.