<PackageReference Include="SSH.NET" Version="2016.1.0-beta3" />

ISubsystemSession

Base interface for SSH subsystem implementations.
bool IsOpen { get; }

Gets a value indicating whether this session is open.

int OperationTimeout { get; }

Gets or set the number of seconds to wait for an operation to complete.

void Connect()

Connects the subsystem using a new SSH channel session.

Creates a WaitHandle array that is composed of system objects and the specified elements.

Creates a WaitHandle array that is composed of system objects and the specified elements.

void Disconnect()

Disconnects the subsystem channel.

int WaitAny(WaitHandle waitHandleA, WaitHandle waitHandleB, int millisecondsTimeout)

Blocks the current thread until the specified WaitHandle gets signaled, using a 32-bit signed integer to specify the time interval in milliseconds.

int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout)

Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to specify the time interval.

bool WaitOne(WaitHandle waitHandle, int millisecondsTimeout)

Blocks the current thread until the specified WaitHandle gets signaled, using a 32-bit signed integer to specify the time interval in milliseconds.

void WaitOnHandle(WaitHandle waitHandle, int millisecondsTimeout)

Waits a specified time for a given WaitHandle to get signaled.