In one thread I have this:
_client = New Sftp
_client.Connect(ipaddress, ipport) ' timeout on connect is 6 seconds
In another thread
_client.Dispose()
I can see that Dispose() will finish while Connect is still timing out.
Is there a way to force Connect to Abort immediately and be done by the time Dispose returns?
If no way to abort THEN is there something I can wait on to make sure Connect has returned?
Would ConnectAsync help? and if so how?
Thanks
Tom