0

If I set ConfigureAwait (false) in the logic I also need to specify it in the WebApi? ASP.NET

My Business Logic Using ConfigureAwait

My WebApi Here you also have to set ConfigureAwait?

7
  • 2
    In WebApi it is not necessary to ConfiguareAwait(false) because there is no SyncronizationContext in Webapi and no chance of blocking for that matter. Commented Nov 26, 2019 at 17:38
  • Thank you very much for clarifying my doubt Commented Nov 26, 2019 at 17:45
  • you're welcome :) Commented Nov 26, 2019 at 17:47
  • 1
    @KennethK. There are many. but this answer is a concise one. stackoverflow.com/a/42058544/4794962 Commented Nov 26, 2019 at 17:58
  • 1
    @Siavash This question is not tagged as asp.net-core; your link specifically says that Core does not have a sync context, but a comment says that classic ASP.NET does. Commented Nov 26, 2019 at 18:05

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.