|
private static async Task<Stream> GetStreamAsync(string url) |
To pass it to GetStreamAsync. (conditional compilation on NET5 or higher).
All callers to this method should pass the value, and accept one.
This is important as if the action is being cancelled on a backend service, this will forward the cancellation to the HTTP request being made, saving important COGS in the process.