This project has moved and is read-only. For the latest updates, please go here.

Async operation in Windows 8

Aug 27, 2012 at 5:42 PM

In newly updated metroOAuthDemo, I updated below code in TweetPage.xaml.cs

var twitterCtx = new TwitterContext (auth);


Status tweet = twitterCtx.UpdateStatus(TweetTextBox.Text, async updateResp => await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () =>



if(updateResp.Error == null) 

await new MessageDialog(updateResp.State.Text, "Successful Tweet"




But still it freezes UI till operation finished. Please Suggest what to be done for Async call.


Aug 29, 2012 at 4:15 PM


Thanks for identifying this.  I'll take a look.


Sep 5, 2012 at 4:25 AM

I found where it was explicitly blocking. This was good - gave me a chance to clean up the code and fix that issue. I've checked in the fix, so you're welcome to look at it and let me know if you see anything strange.


Sep 10, 2012 at 9:04 AM

Thanks Joe,

Sorry for late reply. Will check once my win 8 issue resolved.