Inside Activate
Development
Async, Blocking and .Result
2 min
issue using result with async calls may result in blocking the current thread, deadlocks and high consumption of cpu solution https //learn microsoft com/en us/previous versions/visualstudio/visual studio 2013/hh524395(v=vs 120)?redirectedfrom=msdn "the result property is a blocking property if you try to access it before its task is finished, the thread that's currently active is blocked until the task completes and the value is available in most cases, you should access the value by using await or await instead of accessing the property directly " instead of using result, use activate asyncutils to get the result value asyncutils execsync(() => p graphclient users\[azureupn] request() updateasync(u));