djfoxer.dp.notification.Core.Logic.DpLogic.GetFullBlogStatistic C# (CSharp) Method

GetFullBlogStatistic() public method

public GetFullBlogStatistic ( ) : Task
return Task
        public async Task<BlogStatistic> GetFullBlogStatistic()
        {
            BlogStatistic stat = new BlogStatistic();
            stat.Posts = new List<Post>();

            try
            {
                using (var httpClient = new HttpClient())
                {
                    await GetBlogMainStatistics(1, stat.Posts, httpClient);
                    await GetBlogCounters(stat.Posts, httpClient);
                }
                stat.RefreshMainStatistics();
            }
            catch (Exception)
            {
            }

            return stat;
        }