internal void OnReadBytes(ZipEntry entry)
        {
            EventHandler <ReadProgressEventArgs> rp = ReadProgress;

            if (rp != null)
            {
                var e = ReadProgressEventArgs.ByteUpdate(ArchiveNameForEvent,
                                                         entry,
                                                         ReadStream.Position,
                                                         LengthOfReadStream);
                rp(this, e);
            }
        }
Example #2
0
 internal void OnReadBytes(ZipEntry entry)
 {
     if (ReadProgress != null)
     {
         lock (LOCK)
         {
             var e = ReadProgressEventArgs.ByteUpdate(ArchiveNameForEvent,
                                                      entry,
                                                      ReadStream.Position,
                                                      LengthOfReadStream);
             ReadProgress(this, e);
         }
     }
 }