Ejemplo n.º 1
0
 internal void UploadProgressEvent(object sender, UploadProgressArgs e)
 {
     _logger.Info(sender.ToString() + " -> " + e.TransferredBytes);
     var progressReport = new TaskProgressReport
     {
         Name = _name,
         PercentComplete = e.PercentDone,
         CurrentStep = e.TransferredBytes,
         TotalSteps = e.TotalBytes
     };
     
     _progress.Report(progressReport);
 }
Ejemplo n.º 2
0
 void ProgressChanged(object sender, TaskProgressReport report)
 {
 }
Ejemplo n.º 3
0
        internal void DownloadProgressEvent(object sender, WriteObjectProgressArgs e)
        {
            var progressReport = new TaskProgressReport
            {
                Name = _name,
                PercentComplete = e.PercentDone,
                CurrentStep = e.TransferredBytes,
                TotalSteps = e.TotalBytes
            };

            _progress.Report(progressReport);
        }