Progress reporting and cancellation
This section provides developers with sample code and guidance on handling archive composition events, including how to monitor the progress of compression and how to cancel operations when needed.
When working with large or time-sensitive archive files, it’s crucial to track the progress of the compression process and have the ability to stop the operation if necessary. Aspose.ZIP for .NET provides tools to handle both of these requirements efficiently, allowing developers to report on the status of compression tasks in real-time and cancel the process 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.
- 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 creation more transparent and user-friendly. Look at the following examples to see how progress reporting and cancellation can be implemented in your .NET applications.