public void CancelAsync()
{
if (_channel != null && _channel.IsOpen && _asyncResult != null)
{
// TODO: check with Oleg if we shouldn't dispose the channel and uninitialize it ?
_channel.Dispose();
}
}
/// <summary> /// Cancels command execution in asynchronous scenarios. /// </summary> public void CancelAsync() { _sshCommand.CancelAsync(); }