ShellStream Expect Method (TimeSpan,  ExpectAction )SSH .NET Client Library Documentation
Expects the specified expression and performs action when one is found.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public void Expect(
	TimeSpan timeout,
	params ExpectAction[] expectActions
)

Parameters

timeout
Type: OnlineSystem TimeSpan
Time to wait for input.
expectActions
Type:  Renci.SshNet ExpectAction 
The expected expressions and actions to perform, if the specified time elapsed and expected condition have not met, that method will exit without executing any action.
See Also