public async Task Refresh(CancellationToken cancellationToken) { try { using ( XmlReader reader = new SyndicationFeedXmlReader(await _httpClient.Get(new HttpRequestOptions() { Url = url, CancellationToken = cancellationToken }).ConfigureAwait(false)) ) { _feed = SyndicationFeed.Load(reader); Children = await GetChildren(_feed, cancellationToken); } } catch (OperationCanceledException) { throw; } catch (Exception e) { _logger.ErrorException("Error loading feed {0}", e, url); } }
public async Task Refresh(CancellationToken cancellationToken) { try { using ( XmlReader reader = new SyndicationFeedXmlReader(await _httpClient.Get(url, cancellationToken).ConfigureAwait(false)) ) { _feed = SyndicationFeed.Load(reader); Children = await GetChildren(_feed, cancellationToken); } } catch (OperationCanceledException) { throw; } catch (Exception e) { _logger.ErrorException("Error loading feed {0}", e, url); } }