我一直在尝试使用带有以下内容的 tweetsharp 创建一个可观察的高音提要
public IObservable<IEnumerable<TwitterStatus>> MakeTweetRequest(string screenName)
{
var service = new TwitterService();
var r = Observable.FromAsyncPattern<string, IEnumerable<TwitterStatus>>(
(x,y,g) => service.BeginListTweetsOnSpecifiedUserTimeline(x),
d => service.EndListTweetsOnSpecifiedUserTimeline(d) );
return r(screenName);
}
但我只是无法让它工作有人能帮忙吗?