|
436 | 436 | ] |
437 | 437 | } |
438 | 438 | }, |
439 | | - "CA2007": { |
440 | | - "id": "CA2007", |
441 | | - "shortDescription": "Consider calling ConfigureAwait on the awaited task", |
442 | | - "fullDescription": "When an asynchronous method awaits a Task directly, continuation occurs in the same thread that created the task. Consider calling Task.ConfigureAwait(Boolean) to signal your intention for continuation. Call ConfigureAwait(false) on the task to schedule continuations to the thread pool, thereby avoiding a deadlock on the UI thread. Passing false is a good option for app-independent libraries. Calling ConfigureAwait(true) on the task has the same behavior as not explicitly calling ConfigureAwait. By explicitly calling this method, you're letting readers know you intentionally want to perform the continuation on the original synchronization context.", |
443 | | - "defaultLevel": "warning", |
444 | | - "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007", |
445 | | - "properties": { |
446 | | - "category": "Reliability", |
447 | | - "isEnabledByDefault": false, |
448 | | - "typeName": "CSharpDoNotDirectlyAwaitATask", |
449 | | - "languages": [ |
450 | | - "C#" |
451 | | - ], |
452 | | - "tags": [ |
453 | | - "Telemetry", |
454 | | - "EnabledRuleInAggressiveMode" |
455 | | - ] |
456 | | - } |
457 | | - }, |
458 | 439 | "CA2014": { |
459 | 440 | "id": "CA2014", |
460 | 441 | "shortDescription": "Do not use stackalloc in loops", |
|
3431 | 3412 | ] |
3432 | 3413 | } |
3433 | 3414 | }, |
| 3415 | + "CA2007": { |
| 3416 | + "id": "CA2007", |
| 3417 | + "shortDescription": "Consider calling ConfigureAwait on the awaited task", |
| 3418 | + "fullDescription": "When an asynchronous method awaits a Task directly, continuation occurs in the same thread that created the task. Consider calling Task.ConfigureAwait(Boolean) to signal your intention for continuation. Call ConfigureAwait(false) on the task to schedule continuations to the thread pool, thereby avoiding a deadlock on the UI thread. Passing false is a good option for app-independent libraries. Calling ConfigureAwait(true) on the task has the same behavior as not explicitly calling ConfigureAwait. By explicitly calling this method, you're letting readers know you intentionally want to perform the continuation on the original synchronization context.", |
| 3419 | + "defaultLevel": "warning", |
| 3420 | + "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007", |
| 3421 | + "properties": { |
| 3422 | + "category": "Reliability", |
| 3423 | + "isEnabledByDefault": false, |
| 3424 | + "typeName": "DoNotDirectlyAwaitATaskAnalyzer", |
| 3425 | + "languages": [ |
| 3426 | + "C#", |
| 3427 | + "Visual Basic" |
| 3428 | + ], |
| 3429 | + "tags": [ |
| 3430 | + "Telemetry", |
| 3431 | + "EnabledRuleInAggressiveMode" |
| 3432 | + ] |
| 3433 | + } |
| 3434 | + }, |
3434 | 3435 | "CA2008": { |
3435 | 3436 | "id": "CA2008", |
3436 | 3437 | "shortDescription": "Do not create tasks without passing a TaskScheduler", |
|
6599 | 6600 | ] |
6600 | 6601 | } |
6601 | 6602 | }, |
6602 | | - "CA2007": { |
6603 | | - "id": "CA2007", |
6604 | | - "shortDescription": "Consider calling ConfigureAwait on the awaited task", |
6605 | | - "fullDescription": "When an asynchronous method awaits a Task directly, continuation occurs in the same thread that created the task. Consider calling Task.ConfigureAwait(Boolean) to signal your intention for continuation. Call ConfigureAwait(false) on the task to schedule continuations to the thread pool, thereby avoiding a deadlock on the UI thread. Passing false is a good option for app-independent libraries. Calling ConfigureAwait(true) on the task has the same behavior as not explicitly calling ConfigureAwait. By explicitly calling this method, you're letting readers know you intentionally want to perform the continuation on the original synchronization context.", |
6606 | | - "defaultLevel": "warning", |
6607 | | - "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007", |
6608 | | - "properties": { |
6609 | | - "category": "Reliability", |
6610 | | - "isEnabledByDefault": false, |
6611 | | - "typeName": "BasicDoNotDirectlyAwaitATask", |
6612 | | - "languages": [ |
6613 | | - "Visual Basic" |
6614 | | - ], |
6615 | | - "tags": [ |
6616 | | - "Telemetry", |
6617 | | - "EnabledRuleInAggressiveMode" |
6618 | | - ] |
6619 | | - } |
6620 | | - }, |
6621 | 6603 | "CA2016": { |
6622 | 6604 | "id": "CA2016", |
6623 | 6605 | "shortDescription": "Forward the 'CancellationToken' parameter to methods", |
|
0 commit comments