C# Class Renci.SshNet.Sftp.SubsystemSession

Inheritance: IDisposable
ファイルを表示 Open project: ElanHasson/SSIS-Extensions

Protected Properties

Property Type Description
_operationTimeout System.TimeSpan

Public Methods

Method Description
Connect ( ) : void

Connects subsystem on SSH channel.

Disconnect ( ) : void

Disconnects 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.

SubsystemSession ( Session session, string subsystemName, System.TimeSpan operationTimeout, Encoding encoding ) : System

Initializes a new instance of the SubsystemSession class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

OnChannelOpen ( ) : void

Called when channel is open.

OnDataReceived ( uint dataTypeCode, byte data ) : void

Called when data is received.

RaiseError ( Exception error ) : void

Raises the error.

Private Methods

Method Description
Channel_Closed ( object sender, Common e ) : void
Channel_DataReceived ( object sender, Common e ) : void
Session_Disconnected ( object sender, EventArgs e ) : void
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void
WaitHandle ( WaitHandle waitHandle, System.TimeSpan operationTimeout ) : void

Method Details

Connect() public method

Connects subsystem on SSH channel.
public Connect ( ) : void
return void

Disconnect() public method

Disconnects subsystem channel.
public Disconnect ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

OnChannelOpen() protected abstract method

Called when channel is open.
protected abstract OnChannelOpen ( ) : void
return void

OnDataReceived() protected abstract method

Called when data is received.
protected abstract OnDataReceived ( uint dataTypeCode, byte data ) : void
dataTypeCode uint The data type code.
data byte The data.
return void

RaiseError() protected method

Raises the error.
protected RaiseError ( Exception error ) : void
error System.Exception The error.
return void

SendData() public method

Sends data to the subsystem.
public SendData ( byte data ) : void
data byte The data to be sent.
return void

SubsystemSession() public method

Initializes a new instance of the SubsystemSession class.
session or is null.
public SubsystemSession ( Session session, string subsystemName, System.TimeSpan operationTimeout, Encoding encoding ) : System
session Session The session.
subsystemName string Name of the subsystem.
operationTimeout System.TimeSpan The operation timeout.
encoding System.Text.Encoding
return System

Property Details

_operationTimeout protected_oe property

Specifies a timeout to wait for operation to complete
protected TimeSpan,System _operationTimeout
return System.TimeSpan