Async await in Windows Phone web access APIs

前端 未结 5 1057
闹比i
闹比i 2020-12-29 17:57

Is there support for the async/await pattern in WP8?

I need to get XML from a web-based API and it looks like that WebClient or WebRequest

5条回答
  •  -上瘾入骨i
    2020-12-29 18:07

    There is some support for WP8 in the Microsoft.Threading.Tasks.Extensions.Phone.dll provided as part of the Microsoft.Bcl.Async NuGet package described in this blog post.

    In particular, it includes WebClient.DownloadStringTaskAsync.

提交回复
热议问题