Esempio n. 1
0
        private async Task UpdateCache(Status status)
        {
            if (Cache == null)
            {
                return;
            }

            await Task.WhenAll
            (
                Cache.AddUsers(status.Entities.UserMentionEntities.Select(m => new UserCacheEntry(m)).ToList()),
                Cache.AddHashtags(status.Entities.HashTagEntities.Select(h => h.Tag).ToList())
            );
        }
Esempio n. 2
0
        private async Task UpdateCache(Status status)
        {
            await Cache.AddUsers(status.Entities.UserMentionEntities.Select( m => new UserCacheEntry(m)).ToList());

            await Cache.AddHashtags(status.Entities.HashTagEntities.Select( h => h.Tag ).ToList());
        }