46 if (_streamReader ==
null && !
string.IsNullOrEmpty(_key) && _objectStore.
ContainsKey(_key))
49 var stream =
new MemoryStream(data);
51 if (_key.EndsWith(
".zip", StringComparison.InvariantCulture))
53 using var zipFile = ZipFile.Read(stream);
55 var zipEntry = zipFile[0];
56 var tempStream =
new MemoryStream();
57 zipEntry.Extract(tempStream);
58 tempStream.Position = 0;
61 stream.DisposeSafely();
80 _objectStore = objectStore;
113 if (_streamReader !=
null)
115 _streamReader.Dispose();
116 _streamReader =
null;