Ssh.RunCommandAsync Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9119)
RunCommandAsync(String, Object)
Begins asynchronous RunCommand operation. Runs a remote command and returns its response. Returns null reference (Nothing in Visual Basic) if the end of response has been reached without any preceding data.
Declaration
public Task<string> RunCommandAsync(string command, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | command | Command to run. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String> | Command response if available; or null reference (Nothing in Visual Basic). |