login about faq

Hello. I'm using ftp2 component and i'm trying to manage ftp events in a UWP Windows Phone application.

I need to get the percentage of completion of a SyncRemoteTreeAsync operation, or alternatively, the percentage/progress of PutFileAsync.

This is my ftp setup:

ftp.Hostname = "ftp.#####.com";
ftp.Username = "#####"
ftp.Password = "#####";
ftp.KeepSessionLog = true;
ftp.VerboseLogging = true;
ftp.AutoGetSizeForProgress = true;

Here's the event handlers:

ftp.ProgressInfo += Ftp_ProgressInfo;
ftp.PercentDone += Ftp_PercentDone;
ftp.BeginUploadFile += Ftp_BeginUploadFile;

When i call one of this methods:

result = await ftp.PutFileAsync(localFile.Path, localFiles.Name);

or

result = await ftp.SyncRemoteTreeAsync(storageFolder.Path, mode);

no one of this events are fired:

private void Ftp_ProgressInfo(object sender, ProgressInfoEventArgs eventArgs)
private void Ftp_BeginUploadFile(object sender, FtpTreeEventArgs args)
private void Ftp_PercentDone(object sender, PercentDoneEventArgs eventArgs)

what am I doing wrong? Thanks. Giancarlo.

asked May 22 at 03:23

Janx's gravatar image

Janx
111

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131
×19
×7

Asked: May 22 at 03:23

Seen: 328 times

Last updated: May 22 at 03:23

powered by OSQA