Skip to content

Commit aeeb547

Browse files
authored
CA2016 Forward the 'CancellationToken' parameter to methods that take… (#7188)
* CA2016 Forward the 'CancellationToken' parameter to methods that take one * Revert CodeAnalysis.ruleset * enable warning on CA2016
1 parent e540584 commit aeeb547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/Common.globalconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ dotnet_diagnostic.CA2014.severity = warning
352352
dotnet_diagnostic.CA2015.severity = warning
353353

354354
# Forward the 'CancellationToken' parameter to methods that take one
355-
dotnet_diagnostic.CA2016.severity = suggestion
355+
dotnet_diagnostic.CA2016.severity = warning
356356

357357
# Review SQL queries for security vulnerabilities
358358
dotnet_diagnostic.CA2100.severity = none

src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public override async Task<CacheResult> GetCacheResultAsync(
305305

306306
if (_projectQuerySleepTime is not null)
307307
{
308-
await Task.Delay(_projectQuerySleepTime.Value);
308+
await Task.Delay(_projectQuerySleepTime.Value, cancellationToken);
309309
}
310310

311311
QueryStartStops.Enqueue(queryId);

0 commit comments

Comments
 (0)