Exemplo n.º 1
0
 public FtpHelper()
 {
     if (config == null)
     {
         config = ConfigHelper.GetConfig <FtpConfig>(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, FtpConfigFilePath));
     }
     ftpUri = string.Format("ftp://{0}:{1}/", config.FtpServerIp, config.FtpServerPort);
 }
Exemplo n.º 2
0
 public FtpHelper(FtpConfig ftpConfig)
 {
     config = ftpConfig;
     ftpUri = string.Format("ftp://{0}:{1}/", config.FtpServerIp, config.FtpServerPort);
 }