Exemple #1
0
        public async Task <SortedSet <FeedItem> > LoadUserFeedAsync(Guid userId)
        {
            this.logger.Info($"Call: {nameof(LoadUserFeedAsync)}('{userId}')");
            string content = await this.azureBlobStorageClient.DownloadStringAsync(conteinerName, userId.ToString());

            return(FeedItem.GetItems(content));
        }
Exemple #2
0
        private async Task <SortedSet <FeedItem> > LoadFeedAsync(Guid userId)
        {
            string data = await this.LoadFeedRawAsync(userId);

            if (string.IsNullOrEmpty(data))
            {
                return(null);
            }

            var document = XDocument.Parse(data);

            return(FeedItem.GetItems(document));
        }