Exemplo n.º 1
0
        /// <summary>
        /// Get new posts from the last first page of posts set and analyze them
        /// </summary>
        public async Task AnalyzeNewPostsAsync()
        {
            logger.LogDebug("Getting posts...");
            var posts = await coyoteHandler.GetPosts().ConfigureAwait(false);

            foreach (var post in posts)
            {
                await AnalyzePostAsync(post).ConfigureAwait(false);
            }
            logger.LogDebug("Analyzed (or ignored) everything");
        }
Exemplo n.º 2
0
        private static async Task AnalyzeNewPosts()
        {
            logger.LogDebug("Getting posts...");
            var posts = await ch.GetPosts();

            foreach (var post in posts)
            {
                await AnalyzePost(post);
            }
            logger.LogDebug("Analyzed (or ignored) everything");
        }