/// <summary> /// Save the zip file asynchronously. /// </summary> /// /// <remarks> /// <para> /// See the documentation for <see cref="Save()"/> for details on how saving /// zip archives works. Prior to calling this method, you probably want to /// add a handler for the <see cref="SaveCompleted" /> event. /// </para> /// /// <para> /// This is not available in the Reduced version of the DotNetZip library. /// It's also not avvailable in the Compact Framework version of the library. /// </para> /// /// </remarks> /// /// <seealso cref="SaveCompleted" /> public void SaveAsync() { _Action a = this.Save; IAsyncResult result = a.BeginInvoke(AsyncSaveCompleted, null); }
/// <summary> /// Extract all files in the zip file asynchronously. /// </summary> /// /// <seealso cref="ExtractAllCompleted" /> /// <seealso cref="ExtractAllAsync(String)" /> /// <seealso cref="ExtractAll(String,ExtractExistingFileAction)" /> public void ExtractAllAsync(string path, ExtractExistingFileAction extractExistingFile) { _Action <String, ExtractExistingFileAction> a = this.ExtractAll; IAsyncResult result = a.BeginInvoke(path, extractExistingFile, AsyncExtractAllCompleted, null); }