After calling SftpClient.Disconnect(); method, testing IsConnected value i expected the value go from true to false but this seems not occur even waiting a certain time:
Console.Write("\n sftp disconnecting... : ");
Console.Write("\n sftp server disconnected! : ");
_sftp.IsConnected value is keeping True
How can i test correctly the Disconnected condition with sftpClient, maybe have i done something wrong?