/// <summary> /// FTP对象 /// </summary> /// <returns></returns> public static FTPDownUp FtpInfo() { var serverAddr = ConfigurationManager.AppSettings["serverAddr"].ToString(); var serverPort = Convert.ToInt32(ConfigurationManager.AppSettings["serverPort"]); var userName = ConfigurationManager.AppSettings["userName"].ToString(); var passWord = ConfigurationManager.AppSettings["passWord"].ToString(); FTPDownUp ftp = new FTPDownUp(serverAddr, serverPort, userName, passWord); return ftp; }
/// <summary> /// FTP对象 /// </summary> /// <returns></returns> public static FTPDownUp FtpInfo() { var serverAddr = ConfigurationManager.AppSettings["serverAddr"].ToString(); var serverPort = Convert.ToInt32(ConfigurationManager.AppSettings["serverPort"]); var userName = ConfigurationManager.AppSettings["userName"].ToString(); var passWord = ConfigurationManager.AppSettings["passWord"].ToString(); FTPDownUp ftp = new FTPDownUp(serverAddr, serverPort, userName, passWord); return(ftp); }