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)
{
Frame.Navigate(typeof(OAuthPage));
return;
}
var twitterCtx = new TwitterContext(auth);
var timelineResponse =
(from tweet in twitterCtx.Status
where tweet.Type == StatusType.Home
select tweet)
.ToList();
But if I use version 2.1.0.1 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 2.1.0.1 in WinRT, thanks