Closed EmptyCoffin closed 7 years ago
This is nothing to do with this api..this is due to deadlock situation( using async and await keyword). Please give complete method codes
Hi Tony Thanks for the quick response. Please see below my code: Page Load:
OAuth2 method:
For your specific project, I would like to suggest not using at all the async/await keywords.
In the OAuth2 method: remove async/await and change this line.
var userToken = ApiClient.OAuth2.GetAccessTokenAsync(...).Result;
Does it work?
Unfortunately experiencing the same issues, stuck on waiting on highlighted line
Why don't you use GetAccessToken
instead of GetAccessTokenAsync
?
Yes..exactly..as earlier mentioned this happens due to use of async and await.. As sandrock mentioned you need to use Getaccesstoken only.
Oh opps, must of over read that. Thanks all is working now!
Hi I am using the example in the read me but the task to get the access token never evaluates:
Any help is greatly appreciated