Hi I am using Developer force of Sales force to get the account details, i am not getting any response while executing await, the response is taking too long, any alternative for this await in sales force
var results = await client.QueryAsync(constants.AccountsQuery);
this is running fine in Console application, in MVC 5 Controller, its giving Unlimited TImeout Issue
Most likely, this means that further up your call stack, some code is calling an asynchronous and then blocking on the task it returns (using .Result
, .Wait()
, or .GetAwaiter().GetResult()
). The solution is: don't block on asynchronous code. Instead of blocking, use async
all the way. Change the Result
/Wait
to use await
instead, and the compiler will guide you from there.