Is there any way to await an IAsyncResult in Windows Phone 8?

后端 未结 2 1236
野趣味
野趣味 2021-01-12 12:48

How can I use await with HttpWebRequest in Windows Phone 8 ?

Is there a way to make the IAsyncResult stuff work with await?

private          


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 13:10

    If you install the Microsoft.Bcl.Async package, you get a few async-ready extension methods, including ones for HttpWebRequest.

提交回复
热议问题