Hi,
Unfortunately, I’m not sure how that will work. How exactly will CancellationAwareStream cancel the synchronous work of the underlined stream?
Nevertheless, please check the “Progress Reporting and Cancellation” example:
Last, regarding the async methods, as shown in the above example, the asynchronous execution is currently event-based.
However, starting this year, we have removed support for .NET Framework 3.5. Now, the minimum supported version is 4.6.2, making it easier to incorporate the asynchronous execution with a task-based approach in the future.
Regards,
Mario