Exemple #1
0
 private FtpOptions GetFtpOptions()
 {
     return(new FtpOptions
     {
         Host = _configuration.GetHost(),
         UserId = _configuration.GetUsername(),
         Password = _configuration.GetPassword(),
         UseBinary = false
     });
 }
 public IFtpClient CreateFtpClient()
 {
     return(new SftpClient(_configurationManager.GetHost(), _configurationManager.GetUsername(), _configurationManager.GetPassword()));
 }