private async Task <CacheEntry> CreateCacheEntryAndStoreContent(string metadata, params string[] content) { ContentHash metadataHash = await AddContent(metadata); ContentHash[] hashes = new ContentHash[content.Length + 1]; hashes[0] = metadataHash; for (int i = 0; i < content.Length; i++) { hashes[i + 1] = await AddContent(content[i]); } return(CacheEntry.FromArray(ReadOnlyArray <ContentHash> .FromWithoutCopy(hashes), null)); }