I'm trying to use Async tasks in my custom web api calls in Sitecore. I've successfully followed this article http://www.agehrke.com/2015/08/web-api-controller-in-sitecore-8/#comment-18861.

However I'm afraid to enable UseTaskFriendlySynchronizationContext. Has anyone tried this? Could there be side effects?

  • I have implemented async tasks in the past and it is working as expected. Could there be any side effects: That depends on what operation you are running in your task. Nov 8 '16 at 14:06
  • Note: In my implementations, I did not enable UseTaskFriendlySynchronizationContext which sets to default value = false Nov 8 '16 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.