Well first of all I have to say I have used this library for a couple of projects and I like it! And really do appreciate the work all developers have done. So hats off to them :)
And secondly, I didn't intend to be rude, I was more baffled to be honest in reference to my opening.
I must say, it's very ironic of you to call me lazy. Because a) I wasn't lazy. b) You didn't fully comprehend my question. So you violated your own rule there, read/comprehend before you rant;)
I am very well aware of the Begin/EndExecute. However it does not address the question of polling or being notified on how the SshCommand is progressing during it's execution.
I am also aware of SshCommand.OutputStream. However, I am not very sure about consequences of read/write in terms of unwanted side effects/bugs of reading the stream while BeginExecute write. One side effect seem to be that the result is empty on EndExecute. And reading the OutputStream on another thread is totally out of the question and not thread safe. I even tried it for good measure.
So that was my issue. Which I could not find a good example of or answer to. Instead of assuming, I wanted to ask. It seems I am able to solve my case, but Imho it would be nice to have a way to plug into SshCommands progress that is conspicuous to any developer using ssh.net and effective in terms of resources and implementation. And which the developer can have full confidence in using, in a multi-threaded world. If there is a way, I haven't seen it yet.
Also, to be exact, you got APM and Async mixed up.. they solve the same problem, but they are distinct paradigms in the world of .net. The Begin/End methods you are referencing follow the APM paradigm, not Async. Do your homework! ;) As you so eloquently said.
And finally, keep in mind, we're on the same team :)
And secondly, I didn't intend to be rude, I was more baffled to be honest in reference to my opening.
I must say, it's very ironic of you to call me lazy. Because a) I wasn't lazy. b) You didn't fully comprehend my question. So you violated your own rule there, read/comprehend before you rant;)
I am very well aware of the Begin/EndExecute. However it does not address the question of polling or being notified on how the SshCommand is progressing during it's execution.
I am also aware of SshCommand.OutputStream. However, I am not very sure about consequences of read/write in terms of unwanted side effects/bugs of reading the stream while BeginExecute write. One side effect seem to be that the result is empty on EndExecute. And reading the OutputStream on another thread is totally out of the question and not thread safe. I even tried it for good measure.
So that was my issue. Which I could not find a good example of or answer to. Instead of assuming, I wanted to ask. It seems I am able to solve my case, but Imho it would be nice to have a way to plug into SshCommands progress that is conspicuous to any developer using ssh.net and effective in terms of resources and implementation. And which the developer can have full confidence in using, in a multi-threaded world. If there is a way, I haven't seen it yet.
Also, to be exact, you got APM and Async mixed up.. they solve the same problem, but they are distinct paradigms in the world of .net. The Begin/End methods you are referencing follow the APM paradigm, not Async. Do your homework! ;) As you so eloquently said.
And finally, keep in mind, we're on the same team :)
You know the devs do it in their freetime? And they give to you for free! Insane, right?
You have a private life too, aye? Sometimes it can happen questions get forgotten, no reason to ask such a rude question!
I try to answer a lot of questions, but it's also my freetime! And I do it since I like this project and want to help the devs.
You should try it, too! Helping is nice :)
Beside this is a well documented feature in the docs. You always should read the docs and ask questions then.
Else you look like a lazy person.