There is an easy way to do this.
The ShellStream class has an event available called "DataReceived"
By registering to this event, one can get all data received by the shell stream regardless of whatever the Expect methods are doing.
The use case for doing this is to be able to send commands and parse results AND also capture everything coming from the ShellStream (eg for logging, etc).
The ShellStream class has an event available called "DataReceived"
By registering to this event, one can get all data received by the shell stream regardless of whatever the Expect methods are doing.
The use case for doing this is to be able to send commands and parse results AND also capture everything coming from the ShellStream (eg for logging, etc).