/// <summary> /// Called by <see cref="FeedSource"/>, after a comment feed was updated. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> internal void OnUpdatedCommentFeed(object sender, FeedSource.UpdatedFeedEventArgs e) { if (e.UpdateState == RequestResult.OK) { InvokeOnGui(() => guiMain.UpdateCommentFeed(e.UpdatedFeedUri, e.NewFeedUri)); } }
/// <summary> /// Called by <see cref="FeedSource"/>, after a feed was updated. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> internal void OnUpdatedFeed(object sender, FeedSource.UpdatedFeedEventArgs e) { FeedSourceEntry entry = sourceManager.SourceOf((FeedSource)sender); InvokeOnGui(delegate { guiMain.UpdateFeed(entry, e.UpdatedFeedUri, e.NewFeedUri, e.UpdateState == RequestResult.OK); if (e.FirstSuccessfulDownload) { //new <cacheurl> entry in subscriptions.xml SubscriptionModified(entry, NewsFeedProperty.FeedCacheUrl); //this.FeedlistModified = true; } stateManager.MoveNewsHandlerStateTo(FeedSourceBusyState.RefreshOneDone); }); }
private void OnUpdatedFeed(object sender, FeedSource.UpdatedFeedEventArgs e) { this.resultInfos.Enqueue(e.Priority, new ThreadResultInfo(sender, e)); }