Async await in Windows Phone web access APIs

前端 未结 5 1061
闹比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:11

    WP8 has native async/await support with some limitations, like missing HttpClient and possibly other classes.
    WP7 had support for async/await in VS2010 using AsyncCTP, but in VS2012 it was re-added recently as Microsoft.Bcl.Async:
    https://nuget.org/packages/Microsoft.Bcl.Async/1.0.12-beta

提交回复
热议问题