Esempio n. 1
0
 private SftpClient GetSftpClient(FtpConfiguration ftpConfiguration)
 {
     return(new SftpClient(GetSftpConnectionInfo(ftpConfiguration)));
 }
Esempio n. 2
0
 private ConnectionInfo GetSftpConnectionInfo(FtpConfiguration ftpConfiguration)
 {
     return(new ConnectionInfo(ftpConfiguration.Host,
                               ftpConfiguration.Username,
                               new PasswordAuthenticationMethod(ftpConfiguration.Username, ftpConfiguration.Password)));
 }
Esempio n. 3
0
 public SftpHandler(FtpConfiguration ftpConfiguration)
 {
     this.ftpConfiguration = ftpConfiguration;
 }