/// <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"); }
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"); }