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