C# Класс Renci.SshNet.NetConfClient

Contains operation for working with NetConf server.
Наследование: BaseClient
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

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.
Результат void

NetConfClient() публичный Метод

Initializes a new instance of the SftpClient class.
is null.
public NetConfClient ( ConnectionInfo connectionInfo ) : System
connectionInfo ConnectionInfo The connection info.
Результат System

NetConfClient() публичный Метод

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.
Результат System

NetConfClient() публичный Метод

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.
Результат System

OnConnected() защищенный Метод

Called when client is connected to the server.
protected OnConnected ( ) : void
Результат void

OnDisconnecting() защищенный Метод

Called when client is disconnecting from the server.
protected OnDisconnecting ( ) : void
Результат void

SendCloseRpc() публичный Метод

Sends the close RPC.
Client is not connected.
public SendCloseRpc ( ) : XmlDocument
Результат System.Xml.XmlDocument

SendReceiveRpc() публичный Метод

Sends the receive RPC.
Client is not connected.
public SendReceiveRpc ( XmlDocument rpc ) : XmlDocument
rpc System.Xml.XmlDocument The RPC.
Результат System.Xml.XmlDocument

SendReceiveRpc() публичный Метод

Sends the receive RPC.
public SendReceiveRpc ( string xml ) : XmlDocument
xml string The XML.
Результат System.Xml.XmlDocument