C# Class GitSharp.Core.Transport.SshSessionFactory

Creates and destroys SSH connections to a remote system. Different implementations of the session factory may be used to control communicating with the end-user as well as reading their personal SSH configuration settings, such as known hosts and private keys. A Session must be returned to the factory that created it. Callers are encouraged to retain the SshSessionFactory for the duration of the period they are using the Session.
ファイルを表示 Open project: jagregory/GitSharp Class Usage Examples

Public Properties

Property Type Description
Instance SshSessionFactory

Public Methods

Method Description
getSession ( string user, string pass, string host, int port ) : Session
releaseSession ( Session session ) : void
setInstance ( SshSessionFactory newFactory ) : void

Method Details

getSession() public abstract method

public abstract getSession ( string user, string pass, string host, int port ) : Session
user string
pass string
host string
port int
return Session

releaseSession() public method

public releaseSession ( Session session ) : void
session Session
return void

setInstance() public static method

public static setInstance ( SshSessionFactory newFactory ) : void
newFactory SshSessionFactory
return void

Property Details

Instance public_oe static_oe property

public static SshSessionFactory,GitSharp.Core.Transport Instance
return SshSessionFactory