Свойство | Тип | Описание | |
---|---|---|---|
Channel_Closed | void | ||
Channel_DataReceived | void | ||
Channel_Exception | void | ||
EnsureNotDisposed | void | ||
EnsureSessionIsOpen | void | ||
Session_Disconnected | void | ||
Session_ErrorOccured | void | ||
SignalDisconnected | void | ||
SignalErrorOccurred | void | ||
UnsubscribeFromSessionEvents | void |
Метод | Описание | |
---|---|---|
Connect ( ) : void |
Connects the subsystem using a new SSH channel session.
|
|
Disconnect ( ) : void |
Disconnects the subsystem channel.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
SendData ( byte data ) : void |
Sends data to the subsystem.
|
|
WaitOnHandle ( WaitHandle waitHandle, TimeSpan operationTimeout ) : void |
Waits a specified time for a given WaitHandle to get signaled.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources
|
|
OnChannelOpen ( ) : void |
Called when channel is open.
|
|
OnDataReceived ( byte data ) : void |
Called when data is received.
|
|
RaiseError ( |
Raises the error.
|
|
SubsystemSession ( ISession session, string subsystemName, TimeSpan operationTimeout, Encoding encoding ) : System |
Initializes a new instance of the SubsystemSession class.
|
Метод | Описание | |
---|---|---|
Channel_Closed ( object sender, |
||
Channel_DataReceived ( object sender, |
||
Channel_Exception ( object sender, ExceptionEventArgs e ) : void | ||
EnsureNotDisposed ( ) : void | ||
EnsureSessionIsOpen ( ) : void | ||
Session_Disconnected ( object sender, |
||
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void | ||
SignalDisconnected ( ) : void | ||
SignalErrorOccurred ( Exception error ) : void | ||
UnsubscribeFromSessionEvents ( ISession session ) : void |
Unsubscribes the current SubsystemSession from session events. Does nothing when session is |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected abstract OnChannelOpen ( ) : void | ||
Результат | void |
protected abstract OnDataReceived ( byte data ) : void | ||
data | byte | The data. |
Результат | void |
protected RaiseError ( |
||
error | The error. | |
Результат | void |
public SendData ( byte data ) : void | ||
data | byte | The data to be sent. |
Результат | void |
protected SubsystemSession ( ISession session, string subsystemName, TimeSpan operationTimeout, Encoding encoding ) : System | ||
session | ISession | The session. |
subsystemName | string | Name of the subsystem. |
operationTimeout | TimeSpan | The operation timeout. |
encoding | Encoding | The character encoding to use. |
Результат | System |
public WaitOnHandle ( WaitHandle waitHandle, TimeSpan operationTimeout ) : void | ||
waitHandle | WaitHandle | The handle to wait for. |
operationTimeout | TimeSpan | The time to wait for |
Результат | void |