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