<PackageReference Include="SSH.NET" Version="2020.0.2" />

Renci.SshNet.ExpectAction

public class ExpectAction
Specifies behavior for expected expression
public Action<string> Action { get; }

Gets the action to perform when expected expression is found.

public Regex Expect { get; }

Gets the expected regular expression.

public ExpectAction(Regex expect, Action<string> action)

Initializes a new instance of the ExpectAction class.

public ExpectAction(string expect, Action<string> action)

Initializes a new instance of the ExpectAction class.