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