In my WP7 app I use HttpWebRequest class to make http call to webservice and load the data. From UI thread I make the network call by using Deployment.Current.Dispatcher.BeginInvoke method, once I have received response I use the same Deployment.Current.Dispatcher.BeginInvoke method to update the UI. How do we do the same thing in Windows 8 C# metro app or what is the equivalent method in windows 8 metro app?. Can we use same HttpWebRequest class or some other class we need to use for making network call. Please clarify!
Share
This blog post has all the details for this issue. This is from a series on converting WP7 apps to Windows 8.
You need to use the HttpClient class. Also you no longer need the Dispatcher invokes. You can just use
asyncandawaitand everything works on the same calling thread.