Method | Description | |
---|---|---|
BeginExecute ( ) : IAsyncResult |
Begins an asynchronous command execution.
|
|
BeginExecute ( AsyncCallback callback ) : IAsyncResult |
Begins an asynchronous command execution.
|
|
BeginExecute ( AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous command execution.
|
|
BeginExecute ( string commandText, AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous command execution.
|
|
CancelAsync ( ) : void |
Cancels command execution in asynchronous scenarios.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
EndExecute ( IAsyncResult asyncResult ) : string |
Waits for the pending asynchronous command execution to complete.
|
|
Execute ( ) : string |
Executes command specified by CommandText property.
|
|
Execute ( string commandText ) : string |
Executes the specified command text.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources
|
Method | Description | |
---|---|---|
Channel_Closed ( object sender, |
||
Channel_DataReceived ( object sender, |
||
Channel_ExtendedDataReceived ( object sender, |
||
Channel_RequestReceived ( object sender, |
||
CreateChannel ( ) : IChannelSession | ||
Session_Disconnected ( object sender, |
||
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void | ||
SshCommand ( ISession session, string commandText, |
Initializes a new instance of the SshCommand class.
|
|
UnsubscribeFromEventsAndDisposeChannel ( IChannel channel ) : void |
Unsubscribes the current SshCommand from channel events, and disposes the IChannel. Does nothing when channel is |
|
WaitOnHandle ( |
The actual command will be included in the exception message. |
public BeginExecute ( AsyncCallback callback ) : IAsyncResult | ||
callback | AsyncCallback | An optional asynchronous callback, to be called when the command execution is complete. |
return | IAsyncResult |
public BeginExecute ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | An optional asynchronous callback, to be called when the command execution is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
return | IAsyncResult |
public BeginExecute ( string commandText, AsyncCallback callback, object state ) : IAsyncResult | ||
commandText | string | The command text. |
callback | AsyncCallback | An optional asynchronous callback, to be called when the command execution is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
return | IAsyncResult |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public EndExecute ( IAsyncResult asyncResult ) : string | ||
asyncResult | IAsyncResult | The reference to the pending asynchronous request to finish. |
return | string |
public Execute ( string commandText ) : string | ||
commandText | string | The command text. |
return | string |