Loading local credentials error (version WinRt

Oct 11, 2012 at 6:52 AM

This code from example work fine with version of linq to twittee it referenced to (version 2.0.8)

PinAuthorizer auth =
                new PinAuthorizer
                    Credentials = new LocalDataCredentials()

            if (auth == null || !auth.IsAuthorized)

            var twitterCtx = new TwitterContext(auth);

            var timelineResponse =
                    (from tweet in twitterCtx.Status
                     where tweet.Type == StatusType.Home
                     select tweet)
But if I use version  I have async loading my local credentials and I in runtime am getting into

"if (auth == null || !auth.IsAuthorized)"
before credentials loaded completely so auth is not authorized.
When I set breakpoint in debug everything works fine and auth - object has 
completely loaded credentials (loading operation finishes in background because of time delay).

Can you help me how can I walk around this problem using version in WinRT, thanks
Oct 11, 2012 at 12:02 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Oct 11, 2012 at 12:07 PM


I've opened a new issue on this problem because it sounds like another I encountered not too long ago. BTW, I recently added a new authorizer, called WinRtAuthorizer, that works by just instantiating the type, with ConsumerKey and ConsumerSecret, and calling Authorize. I don't have any demos available yet, but WinRtAuthorizer is really a better solution.


Oct 11, 2012 at 12:52 PM

Thanks for reply