27-04-21 05:23 AM
27-04-21 06:27 AM
var result = await myAsyncFunction();
Append '.GetAwaiter().GetResult().Output' to your code,
var result = myAsyncFunction().GetAwaiter().GetResult().Output;
27-04-21 06:46 AM
04-12-23 02:02 AM
Thanks Arnold,
That solution working super in visual studio. However, if we use in BP code stage it getting stuck.
Here is the best solution I got implemented.
var result = Task.Run(async () => await GetAccessToken()).Result;