C# Class Renci.SshNet.NetConfClient

Contains operation for working with NetConf server.
Inheritance: BaseClient
Datei anzeigen Open project: sshnet/SSH.NET

Public Methods

Method Description
NetConfClient ( ConnectionInfo connectionInfo ) : System

Initializes a new instance of the SftpClient class.

NetConfClient ( string host, string username ) : System

Initializes a new instance of the SftpClient class.

NetConfClient ( string host, string username, string password ) : System

Initializes a new instance of the SftpClient class.

SendCloseRpc ( ) : XmlDocument

Sends the close RPC.

SendReceiveRpc ( XmlDocument rpc ) : XmlDocument

Sends the receive RPC.

SendReceiveRpc ( string xml ) : XmlDocument

Sends the receive RPC.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

OnConnected ( ) : void

Called when client is connected to the server.

OnDisconnecting ( ) : void

Called when client is disconnecting from the server.

Private Methods

Method Description
NetConfClient ( ConnectionInfo connectionInfo, bool ownsConnectionInfo ) : System

Initializes a new instance of the NetConfClient class.

If ownsConnectionInfo is true, then the connection info will be disposed when this instance is disposed.

NetConfClient ( ConnectionInfo connectionInfo, bool ownsConnectionInfo, IServiceFactory serviceFactory ) : System

Initializes a new instance of the NetConfClient class.

If ownsConnectionInfo is true, then the connection info will be disposed when this instance is disposed.

NetConfClient ( string host, int port, string username ) : System
NetConfClient ( string host, int port, string username, string password ) : System

Method Details

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

NetConfClient() public method

Initializes a new instance of the SftpClient class.
is null.
public NetConfClient ( ConnectionInfo connectionInfo ) : System
connectionInfo ConnectionInfo The connection info.
return System

NetConfClient() public method

Initializes a new instance of the SftpClient class.
is null. is invalid, -or- is null or contains only whitespace characters.
public NetConfClient ( string host, string username ) : System
host string Connection host.
username string Authentication username.
return System

NetConfClient() public method

Initializes a new instance of the SftpClient class.
is null. is invalid, or is null or contains only whitespace characters.
public NetConfClient ( string host, string username, string password ) : System
host string Connection host.
username string Authentication username.
password string Authentication password.
return System

OnConnected() protected method

Called when client is connected to the server.
protected OnConnected ( ) : void
return void

OnDisconnecting() protected method

Called when client is disconnecting from the server.
protected OnDisconnecting ( ) : void
return void

SendCloseRpc() public method

Sends the close RPC.
Client is not connected.
public SendCloseRpc ( ) : XmlDocument
return System.Xml.XmlDocument

SendReceiveRpc() public method

Sends the receive RPC.
Client is not connected.
public SendReceiveRpc ( XmlDocument rpc ) : XmlDocument
rpc System.Xml.XmlDocument The RPC.
return System.Xml.XmlDocument

SendReceiveRpc() public method

Sends the receive RPC.
public SendReceiveRpc ( string xml ) : XmlDocument
xml string The XML.
return System.Xml.XmlDocument