Skip to content

CRARCH0019 Avoid Async postfix on method names

  • Category: Architecture
  • Default severity: Warning
  • Diagnostic ID: CRARCH0019

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.

Method '{0}' should not end with 'Async' unless a synchronous '{1}' method also exists

Rename methods to remove the Async suffix unless a synchronous counterpart exists.