示例#1
0
        public static void SyncList(ReaderPlatform readerPlatform)
        {
            _queryRssChat = readerPlatform.Resolve <IQueryRssChatRelationService>();
            var datas = _queryRssChat.GetList().ResponseData;

            RssList = RssList.Where(x => datas.Select(y => y.Id).Contains(x.Key.Id)).ToDictionary(x => x.Key, y => y.Value);

            foreach (var item in datas)
            {
                if (RssList.Select(x => x.Key.Id).Contains(item.Id))
                {
                    continue;
                }
                else
                {
                    RssList.Add(item, DateTimeOffset.Now);
                }
            }
        }
示例#2
0
 public static void Load(ReaderPlatform readerPlatform)
 {
     _queryRssChat = readerPlatform.Resolve <IQueryRssChatRelationService>();
     RssList       = _queryRssChat.GetList().ResponseData.ToDictionary(x => x, x => DateTimeOffset.Now);
 }