public async Task <Category> GetForumDescriptionsFromCategoryPageAsync(Category category) { var result = await _webManager.GetDataAsync(string.Format(EndPoints.ForumPage, category.Id)); var document = await _webManager.Parser.ParseAsync(result.ResultHtml); return(ForumHandler.ParseForumDescriptions(document, category)); }
public async Task <Category> GetForumDescriptionsFromCategoryPageAsync(Category category, CancellationToken token = default) { if (category == null) { throw new ArgumentNullException(nameof(category)); } var result = await this.webManager.GetDataAsync(string.Format(CultureInfo.InvariantCulture, EndPoints.ForumPage, category.Id), token).ConfigureAwait(false); var document = await this.webManager.Parser.ParseDocumentAsync(result.ResultHtml, token).ConfigureAwait(false); return(ForumHandler.ParseForumDescriptions(document, category)); }