16 using System.Collections.Generic;
28 private readonly
object _sync =
new object();
29 private readonly Dictionary<string, ZipFile> _zipFiles =
new Dictionary<string, ZipFile>();
36 public IEnumerable<Stream>
Open(
string source)
40 var archive =
new ZipFile(source);
41 _zipFiles.Add(source, archive);
42 foreach (var entry
in archive)
44 yield
return entry.OpenReader();
53 public void Close(
string source)
58 if (_zipFiles.TryGetValue(source, out archive))
60 _zipFiles.Remove(source);
73 foreach (var zipFile
in _zipFiles.Values)