CRARCH0019 Avoid Async postfix on method names
- Category: Architecture
- Default severity: Warning
- Diagnostic ID:
CRARCH0019
What it checks
Section titled “What it checks”When a method is analyzed, its name is checked for a case-sensitive Async suffix. The suffix is allowed when the same type has an ordinary method with the unsuffixed name and a non-task-like return type; the counterpart’s parameter list need not match.
Diagnostic message
Section titled “Diagnostic message”Method '{0}' should not end with 'Async' unless a synchronous '{1}' method also exists
How to resolve
Section titled “How to resolve”Rename methods to remove the Async suffix unless a synchronous counterpart exists.