Auto SSH.net client reconnect

Apr 16, 2013 at 2:24 PM
Edited Apr 16, 2013 at 2:25 PM
I should know the answer to this, but my mind keeps on going blank. On a on-click event, I've been able to get the client started if not started, but how would I auto-reconnect the client if it disconnected from the server? Also the client stops trying to reconnect after 3 tries.

Sample code in vb.net or C# would be great!

Thanks!