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