Méthode | Description | |
---|---|---|
BeginExpect ( ) : IAsyncResult |
Begins the expect.
|
|
BeginExpect ( AsyncCallback callback ) : IAsyncResult |
Begins the expect.
|
|
BeginExpect ( AsyncCallback callback, object state ) : IAsyncResult |
Begins the expect.
|
|
BeginExpect ( System.TimeSpan timeout, AsyncCallback callback, object state ) : IAsyncResult |
Begins the expect.
|
|
EndExpect ( IAsyncResult asyncResult ) : string |
Ends the execute.
|
|
Expect ( |
Expects the expression specified by regular expression.
|
|
Expect ( |
Expects the expression specified by regular expression.
|
|
Expect ( string text ) : string |
Expects the expression specified by text.
|
|
Expect ( string text, System.TimeSpan timeout ) : string |
Expects the expression specified by text.
|
|
Expect ( ) : void |
Expects the specified expression and performs action when one is found.
|
|
Expect ( System.TimeSpan timeout ) : void |
Expects the specified expression and performs action when one is found.
|
|
Flush ( ) : void |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
Read ( ) : string |
Reads text available in the shell.
|
|
ReadLine ( ) : string |
Reads the line from the shell. If line is not available it will block the execution and will wait for new line.
|
|
ReadLine ( System.TimeSpan timeout ) : string |
Reads a line from the shell. If line is not available it will block the execution and will wait for new line.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
This method is not supported.
|
|
SetLength ( long value ) : void |
This method is not supported.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
|
Write ( string text ) : void |
Writes the specified text to the shell. If text is |
|
WriteLine ( string line ) : void |
Writes the line to the shell. If line is |
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
|
Méthode | Description | |
---|---|---|
Channel_Closed ( object sender, |
||
Channel_DataReceived ( object sender, |
||
OnDataReceived ( byte data ) : void | ||
OnRaiseError ( ExceptionEventArgs e ) : void | ||
Session_Disconnected ( object sender, |
||
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void | ||
ShellStream ( ISession session, string terminalName, uint columns, uint rows, uint width, uint height, uint>.IDictionary |
||
UnsubscribeFromSessionEvents ( ISession session ) : void |
Unsubscribes the current ShellStream from session events. Does nothing when session is |
public BeginExpect ( AsyncCallback callback ) : IAsyncResult | ||
callback | AsyncCallback | The callback. |
Résultat | IAsyncResult |
public BeginExpect ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | The callback. |
state | object | The state. |
Résultat | IAsyncResult |
public BeginExpect ( System.TimeSpan timeout, AsyncCallback callback, object state ) : IAsyncResult | ||
timeout | System.TimeSpan | The timeout. |
callback | AsyncCallback | The callback. |
state | object | The state. |
Résultat | IAsyncResult |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Résultat | void |
public EndExpect ( IAsyncResult asyncResult ) : string | ||
asyncResult | IAsyncResult | The async result. |
Résultat | string |
public Expect ( |
||
regex | The regular expression to expect. | |
Résultat | string |
public Expect ( |
||
regex | The regular expression to expect. | |
timeout | System.TimeSpan | Time to wait for input. |
Résultat | string |
public Expect ( string text ) : string | ||
text | string | The text to expect. |
Résultat | string |
public Expect ( string text, System.TimeSpan timeout ) : string | ||
text | string | The text to expect. |
timeout | System.TimeSpan | Time to wait for input. |
Résultat | string |
public Expect ( System.TimeSpan timeout ) : void | ||
timeout | System.TimeSpan | Time to wait for input. |
Résultat | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between |
offset | int | The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
Résultat | int |
public ReadLine ( System.TimeSpan timeout ) : string | ||
timeout | System.TimeSpan | Time to wait for input. |
Résultat | string |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the |
origin | SeekOrigin | A value of type |
Résultat | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the current stream in bytes. |
Résultat | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
Résultat | void |
public Write ( string text ) : void | ||
text | string | The text to be written to the shell. |
Résultat | void |
public WriteLine ( string line ) : void | ||
line | string | The line to be written to the shell. |
Résultat | void |