Hi,
Here is a code example that I used ion my test:
Hope it helps,
Thanks,
Oleg
Here is a code example that I used ion my test:
using (var scp = new ScpClient(connectionInfo))
{
scp.Connect();
scp.BufferSize = 1024;
scp.Downloading += delegate(object sender, ScpDownloadEventArgs e)
{
Console.WriteLine(e.Filename + ":" + e.Size + ":" + e.Downloaded);
};
scp.Uploading += delegate(object sender, ScpUploadEventArgs e)
{
Console.WriteLine(e.Filename + ":" + e.Size + ":" + e.Uploaded);
};
Unfortunately I recently just found a bug that Uploading does not count it correctly so will try to fix it later.Hope it helps,
Thanks,
Oleg