hi there, when I using tweetinvi with this code in my wp8 application:
var url = CredentialsCreator.GetAuthorizationURL(credentials);
the app hanged out.
after I debugged through, i found out that, the following code in WebHelper class coursed deadlock:
```
public WebResponse GetWebResponse(WebRequest webRequest)
{
Task<WebResponse> requestTask = Task.Factory.FromAsync<WebResponse(webRequest.BeginGetResponse, webRequest.EndGetResponse, webRequest);
requestTask.Wait();
return requestTask.Result;
}
```
the code "requestTask.Wait();" never got to run.
this post showes how deadlock happened: [Don't Block on Async Code](http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html)
but i don't know how to solve the problem, should i make all the method call asynchronous? such as CredentialsCreator.GetAuthorizationURL.
any way, thanks for all the hard work! :D
var url = CredentialsCreator.GetAuthorizationURL(credentials);
the app hanged out.
after I debugged through, i found out that, the following code in WebHelper class coursed deadlock:
```
public WebResponse GetWebResponse(WebRequest webRequest)
{
Task<WebResponse> requestTask = Task.Factory.FromAsync<WebResponse(webRequest.BeginGetResponse, webRequest.EndGetResponse, webRequest);
requestTask.Wait();
return requestTask.Result;
}
```
the code "requestTask.Wait();" never got to run.
this post showes how deadlock happened: [Don't Block on Async Code](http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html)
but i don't know how to solve the problem, should i make all the method call asynchronous? such as CredentialsCreator.GetAuthorizationURL.
any way, thanks for all the hard work! :D