示例#1
0
 private void Initialize(FtpRequestInfo requestInfo)
 {
     _request             = (FtpWebRequest)WebRequest.Create(requestInfo.RequestUri);
     _request.Credentials = new NetworkCredential(requestInfo.UserName, requestInfo.Password);
     _request.UseBinary   = true;
     _request.Method      = WebRequestMethods.Ftp.UploadFile;
     _request.KeepAlive   = false;
 }
示例#2
0
 public FtpClient(FtpRequestInfo requestInfo)
 {
     Initialize(requestInfo);
 }