4

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?

2
  • 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. Commented Nov 8, 2016 at 14:06
  • Note: In my implementations, I did not enable UseTaskFriendlySynchronizationContext which sets to default value = false Commented Nov 8, 2016 at 14:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.