C# Class Renci.SshNet.ConnectionInfo

Represents remote connection information class.
This class is NOT thread-safe. Do not use the same ConnectionInfo with multiple client instances.
Inheritance: IConnectionInfoInternal
Datei anzeigen Open project: sshnet/SSH.NET Class Usage Examples

Private Properties

Property Type Description
Authenticate void
IConnectionInfoInternal IAuthenticationMethod
IConnectionInfoInternal void

Public Methods

Method Description
ConnectionInfo ( string host, int port, string username ) : System

Initializes a new instance of the ConnectionInfo class.

ConnectionInfo ( string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : System

Initializes a new instance of the ConnectionInfo class.

ConnectionInfo ( string host, string username ) : System

Initializes a new instance of the ConnectionInfo class.

Private Methods

Method Description
Authenticate ( ISession session, IServiceFactory serviceFactory ) : void

Authenticates the specified session.

IConnectionInfoInternal ( ) : IAuthenticationMethod
IConnectionInfoInternal ( object sender, MessageEventArgs e ) : void

Signals that an authentication banner message was received from the server.

Method Details

ConnectionInfo() public method

Initializes a new instance of the ConnectionInfo class.
is null. is null, a zero-length string or contains only whitespace characters. is not within and . is null. No specified.
public ConnectionInfo ( string host, int port, string username ) : System
host string The host.
port int The port.
username string The username.
return System

ConnectionInfo() public method

Initializes a new instance of the ConnectionInfo class.
is null. is null, a zero-length string or contains only whitespace characters. is not within and . is not and is null. is not and is not within and . is null. No specified.
public ConnectionInfo ( string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : System
host string Connection host.
port int Connection port.
username string Connection username.
proxyType ProxyTypes Type of the proxy.
proxyHost string The proxy host.
proxyPort int The proxy port.
proxyUsername string The proxy username.
proxyPassword string The proxy password.
return System

ConnectionInfo() public method

Initializes a new instance of the ConnectionInfo class.
is null. is a zero-length string. is null, a zero-length string or contains only whitespace characters. is null. No specified.
public ConnectionInfo ( string host, string username ) : System
host string The host.
username string The username.
return System