Beispiel #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;
 }
Beispiel #2
0
 public FtpClient(FtpRequestInfo requestInfo)
 {
     Initialize(requestInfo);
 }