private void OnBeforeExtract(string path)
{
// When in the context of a ZipFile.ExtractAll, the events are generated from
// the ZipFile method, not from within the ZipEntry instance. (why?)
// Therefore we suppress the events originating from the ZipEntry method.
if (_container.ZipFile != null)
{
if (!_container.ZipFile._inExtractAll)
{
_ioOperationCanceled = _container.ZipFile.OnSingleEntryExtract(this, path, true);
}
}
}