Progress reporting and cancellation
This section provides developers with sample code and guidance on monitoring archive operations and canceling them when needed, both during composition and during extraction.
When working with large or time-sensitive archive files, it is often necessary to track compression progress and to stop long-running composition or extraction operations when needed. Aspose.ZIP for .NET provides tools for both scenarios, allowing developers to report progress in real time and cancel processing under specific conditions.
For more details, explore the following chapters:
- Cancel Further Archive Composition: Learn how to cancel an ongoing archive composition when certain criteria are met, such as time constraints or user requests.
- Cancel Archive Extraction with CancellationToken: Stop ZIP, 7z, CAB, and other extraction operations by passing a cancellation token in load options.
- Report How Compression is Going: Discover how to implement real-time progress reporting to keep track of the compression process and provide users with status updates.
These features offer flexibility in managing long-running operations, making archive processing more transparent and controllable. Look at the following examples to see how progress reporting and cancellation can be implemented in your .NET applications.