Hello,
We are trying to adopt Aspoze.ZIP for our functionality of creating multivolume archives.
One of prolems we have is we are packaging relatively large archives with large number of entries from streams, and we would like to be able to better control when the streams close, not to keep entry streams open for extended periods of time.
One remark that our streams are coming from the data source that does not provide length so we cannot use entry.CompressionProgressed for the purpose.
And in current contracts, archive.Save method accepts an instance of ArchiveSaveOptions, that, among others, accepts EventsBag instance that allows to capture an event of entry compressing, where we can close the source stream.
But archive.SaveSplit method does not accept EventsBag in any way.
With the above said, I have two questions.
- Is it possible/planned to add support of EventsBag to SaveSplit method, or alternatively expose more events on the Entry level to signal the full processing of the entry?
- Is it possible/planned to add additional events to EventsBag to know when entry is starting to be written, or maybe expose some sort of OpenImmediately flag on the Entry creation for streams for better control of when streams are opening?
Thank you in advance.