title: C# : How to report progress while creating a zip file?
body: <p>Update: Got it working updated my working code</p>
  
  <p>Here is what I have so far</p>
  
  <pre><code> private async void ZipIt(string src, string dest)
      {
          await Task.Run(() =&gt;
          {
              using (var zipFile = new ZipFile())
              {
                  // add content to zip here 
                  zipFile.AddDirectory(src);
                  zipFile.SaveProgress +=
                      (o, args) =&gt;
                      {
                          var percentage = (int)(1.0d / args.TotalBytesToTransfer * args.BytesTransferred * 100.0d);
                          // report your progress
                          pbCurrentFile.Dispatcher.Invoke(
                              System.Windows.Threading.DispatcherPriority.Normal,
                              new Action(
                              delegate()
                              {
  
                                  pbCurrentFile.Value = percentage;
                              }
                              ));
                      };
                  zipFile.Save(dest);
              }
          });
      }
  </code></pre>
  
  <p>I need to figure out how to update my progress bar but not sure if I am on the right track I have searched around and found many examples for windows forms and vb.net but nothing for wpf c# was wondering if anyone could help.</p>