I have a CancellationToken
, but I don't see a way to pass it to HttpClient.GetByteArrayAsync
. Which overload should I be using for this effect?
This HttpClient method (as well as a some others) does not support cancellation yet. The feature has been requested. Until such time, should not be difficult to implement a custom version of it by copying GetByteArrayAsync and replacing with GetAsync variant that supports cancellation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With