|
result = await reader.ReadToEndAsync().ConfigureAwait(false); |
When passing a CancellationToken with a timer to avoid waiting > n seconds for long-running scans, the ReadToEndAsync() does not get passed the cancellationToken, resulting in the task not cancelling.