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()) ); }
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()); }