/// <summary> /// Handles the <see cref="E:NewsEvent" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="T:Crypto.Compare.Proxies.NewsSummaryEventArgs" /> instance containing the event data.</param> protected override void OnNewsDetail(object sender, NewsDetailEventArgs e) { //newsRepository.AddUpdateCategory(e.) logger.LogInformation("Read Details {0} bytes", e.Story.UrlData.Count()); lock (logger) { var category = newsRepository.AddUpdateCategory(Map.Provider(e.Story.Provider)); var content = newsRepository.AddUpdateStory(category, Map.Story(e.Story)); newsRepository.AddUpdateItem(Map.Item(category, content)); } }