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