Async await in Windows Phone web access APIs

前端 未结 5 1073
闹比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条回答
  •  滥情空心
    2020-12-29 18:08

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

    Just to clarify, there is full C# 5.0 support on Windows Phone 8. The WinRT APIs largely depend on async/await, such as syncing to PeopleHub, or using the I/O APIs.

    But the Silverlight and old .NET APIs have not been updated to use async/await for classes like the WebClient.

提交回复
热议问题