Async call with await in HttpClient never returns

后端 未结 3 558
栀梦
栀梦 2020-11-29 19:33

I have a call I am making from inside a xaml-based, C# metro application on the Win8 CP; this call simply hits a web service and returns JSON data.



        
3条回答
  •  醉酒成梦
    2020-11-29 20:05

    Just a heads up - if you miss the await at the top level in an ASP.NET controller, and you return the task instead of the result as a response, it actually just hangs in the nested await call(s) with no errors. A silly mistake, but had I seen this post it might have saved me some time checking through the code for something odd.

提交回复
热议问题