Method WaitForExitAsync
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
WaitForExitAsync(CancellationToken)
Completes when the server closes the session, after the program has ended and its output has been sent. Output that is never read can keep the server from finishing (see the remarks on SshSession).
public Task WaitForExitAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
Exceptions
- SshException
The connection failed.