C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Instance SshSessionFactory

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

Метод Описание
getSession ( string user, string pass, string host, int port ) : Session
releaseSession ( Session session ) : void
setInstance ( SshSessionFactory newFactory ) : void

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

getSession() публичный абстрактный Метод

public abstract getSession ( string user, string pass, string host, int port ) : Session
user string
pass string
host string
port int
Результат Session

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

public releaseSession ( Session session ) : void
session Session
Результат void

setInstance() публичный статический Метод

public static setInstance ( SshSessionFactory newFactory ) : void
newFactory SshSessionFactory
Результат void

Описание свойств

Instance публичное статическое свойство

public static SshSessionFactory,GitSharp.Core.Transport Instance
Результат SshSessionFactory