How can I use async/await to call a webservice?

前端 未结 5 723
清酒与你
清酒与你 2020-12-14 07:08

I have a webservice written in Yii (php framework).

I use C# and Visual Studio 2012 to develop a WP8 application. I added a service reference to my project (Add Serv

5条回答
  •  春和景丽
    2020-12-14 07:37

    While adding your service reference make sure you selected Generate Task based operations in Advanced section. this will create awaitable methods like LoginAsync returning Task

提交回复
热议问题