Fixed bug that didn't record skipped uploads, resulting in repeated upload attempts...
[pithos-ms-client] / trunk / Pithos.Network / CloudFilesClient.cs
index 2b11626..c4496c9 100644 (file)
@@ -1110,6 +1110,13 @@ namespace Pithos.Network
 
                 var builder = client.GetAddressBuilder(container, relativeUrl.ToString());
                 var uri = builder.Uri;
+                
+                client.DownloadProgressChanged += (sender, args) =>
+                                  Log.DebugFormat("[GET PROGRESS] {0} {1}% {2} of {3}",
+                                                 uri.Segments.Last(), args.ProgressPercentage,
+                                                 args.BytesReceived,
+                                                 args.TotalBytesToReceive);
+
 
                 var result = await client.DownloadDataTaskAsync(uri, cancellationToken);
                 return result;