コード例 #1
0
ファイル: Program.cs プロジェクト: weisisheng/aws-misc
        private static async Task GetLatest(bool rebuildTable)
        {
            if (rebuildTable)
            {
                List <Service> onlineServiceList = await HtmlHelper.ParseAwsServices("https://aws.amazon.com/products/");

                List <Service> master = ServiceListHelper.OrderServiceListByShortName(onlineServiceList);

                await DynamoHelper.RebuildTable(master);

                List <Service> serviceList = await DynamoHelper.QueryTable();

                List <Tags> tagList = await HtmlHelper.ParseBlogTags("https://msimpson.co.nz/tags/aws/");

                List <TableEntry> tableList = MarkdownHelper.BuildTable(serviceList, tagList);

                MarkdownHelper.BuildMarkdown(tableList);
            }
            else
            {
                List <Service> serviceList = await DynamoHelper.QueryTable();

                List <Tags> tagList = await HtmlHelper.ParseBlogTags("https://msimpson.co.nz/tags/aws/");

                List <TableEntry> tableList = MarkdownHelper.BuildTable(serviceList, tagList);

                MarkdownHelper.BuildMarkdown(tableList);
            }
        }