我正在尝试对twitter进行基本的SingleUserAuthorizer调用。我在尝试用户Linq请求时收到此异常。有什么想法吗?
抛出异常:mscorlib.dll中的'System.AggregateException'
var auth = new SingleUserAuthorizer
{
CredentialStore = new SingleUserInMemoryCredentialStore
{
ConsumerKey = twitterConsumerKey,
ConsumerSecret = twitterConsumerSecret,
OAuthToken = twitterAccessTokenSecret,
AccessToken = twitterAccessToken
}
};
//await auth.AuthorizeAsync();
var twitterCtx = new TwitterContext(auth);
User user =
(from tweet in twitterCtx.User
where tweet.Type == UserType.Show &&
tweet.ScreenName == member.screenName
select tweet)
.SingleOrDefault();