I am developing an application for Android,Windows Store and Windows Phone . This Application is based on the Shared Code strategy . So using Dependency Injection Framework , I am implementing all the platform specific functions separately.
I have to implement a function for fetching WebResponse by sending a HttpWebRequest consisting of some headers . In windows Store , i have done this using HttpClient and HttpRequestMessage and Response.
But in Windows Phone I can do this using HttpwebRequest.BeginGetResponse() method only if this method is being called from a main thread and not Worker thread . But I have to call it from a Worker thread .
Can you please tell me how i can do that ??? ...And yeah I am a newbie in App Development and have no experience in this ..So if you can be elaborative , It will be helpful