Async suffix (ARCH003)
Key dotnet.naming.async-suffix · Severity info · Category naming
Async method names should end with the Async suffix. This lets callers immediately recognize that the method is awaitable.
Incorrect
Section titled “Incorrect”public async Task<Order> GetOrder(int id){ return await _repository.FindAsync(id);}Correct
Section titled “Correct”public async Task<Order> GetOrderAsync(int id){ return await _repository.FindAsync(id);}Add the Async suffix to the async method. If needed, suppress the rule per project/workspace via except/ignore.