Code inspection: Method has async overload
This inspection reports a synchronous call inside an async context when a matching async overload is available.
Using the async overload usually avoids blocking work and fits better with the surrounding async flow.
Example
using System.Threading.Tasks;
public class Example
{
public void Load() { }
public Task LoadAsync() => Task.CompletedTask;
public async Task RunAsync()
{
Load();
}
}
using System.Threading.Tasks;
public class Example
{
public void Load() { }
public Task LoadAsync() => Task.CompletedTask;
public async Task RunAsync()
{
await LoadAsync();
}
}
Quick-fix
Switch to the async overload and wrap the call in await.
28 March 2026