Пример #1
0
 public FTP(string host, string username, string password, bool useSSL, bool implicitMode, bool useSelfSignedCert, bool activeMode, bool useBinaryMode)
 {
     _config = new FTPConfig
     {
         UseSSL            = useSSL,
         Host              = host,
         UserName          = username,
         Password          = password,
         ImplicitMode      = implicitMode,
         ActiveMode        = activeMode,
         UseSelfSignedCert = useSelfSignedCert,
         UseBinaryMode     = useBinaryMode
     };
 }
Пример #2
0
 public FTP(FTPConfig config)
 {
     _config = config;
 }