C# Class Renci.SshNet.Shell

Represents instance of the SSH shell object
Inheritance: IDisposable
Datei anzeigen Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Start ( ) : void

Starts this shell.

Stop ( ) : void

Stops this shell.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Private Methods

Method Description
Channel_Closed ( object sender, ChannelEventArgs e ) : void
Channel_DataReceived ( object sender, ChannelDataEventArgs e ) : void
Channel_ExtendedDataReceived ( object sender, ChannelExtendedDataEventArgs e ) : void
RaiseError ( ExceptionEventArgs e ) : void
Session_Disconnected ( object sender, EventArgs e ) : void
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void
Shell ( ISession session, Stream input, Stream output, Stream extendedOutput, string terminalName, uint columns, uint rows, uint width, uint height, uint>.IDictionary terminalModes, int bufferSize ) : System

Initializes a new instance of the Shell class.

UnsubscribeFromSessionEvents ( ISession session ) : void

Unsubscribes the current Shell from session events.

Does nothing when session is null.

Method Details

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

Start() public method

Starts this shell.
Shell is started.
public Start ( ) : void
return void

Stop() public method

Stops this shell.
Shell is not started.
public Stop ( ) : void
return void