I have async method like this:
public static async void SendInfo(List<MyType> list)
{
var tasks = list.Select(i => SendAsync(i));
await Task.WhenAll(tasks); // breakpoint1
}
public static async Task SendAsync(MyType item)
{
Input input = GetInput(item); //preparation data
Client client = new Client();
Output output = await client.CreateInput(input); //breakpoint2
if (output.Status == Status.Success) //breakpoint3
{ //Other code }
}
Input
, Output
, Client
- proxy-classes from remote API service. Is it possible to debug method SendAsync
after condition if
? In my case breakpoint3
can not be reached. Debug instance ends when I click "Step into" on line with await client.CreateInput(input)