public XElement GetFeed(RemoteRssPart remoteRss) { var feed = _cacheManager.Get(RemoteRssCacheKey + remoteRss.RemoteRssUrl, s => { s.Monitor(_clock.When(TimeSpan.FromMinutes(remoteRss.CacheDuration))); var f = XElement.Load(remoteRss.RemoteRssUrl); return f; } ); return feed; }
public XElement GetFeed(RemoteRssPart remoteRss) { var feed = _cacheManager.Get(RemoteRssCacheKey + remoteRss.RemoteRssUrl, s => { s.Monitor(_clock.When(TimeSpan.FromMinutes(remoteRss.CacheDuration))); var f = XElement.Load(remoteRss.RemoteRssUrl); return(f); } ); return(feed); }