private void ZipToOutputFile(string folderToZip) { using (ArchiveWriter zip = ArchiveFactory.Writer(ArchiveFactory.Type.Zip, File.OpenWrite(_destFile))) { zip.CreateArchive(folderToZip); } }
private void ZipToOutputFile(string folderToZip, Action cancellingDelegate = null, Action <int> progressDelegate = null) { using (ArchiveWriter zip = ArchiveFactory.Writer(ArchiveFactory.Type.Zip, File.OpenWrite(_destFile))) zip.CreateArchive(folderToZip, cancellingDelegate, progressDelegate); }