Table of Contents

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

cancellationToken CancellationToken

Returns

Task

Exceptions

SshException

The connection failed.