Example #1
0
        public async Task <NewThread> GetThreadCookiesAsync(int forumId)
        {
            string url    = string.Format(EndPoints.NewThread, forumId);
            var    result = await _webManager.GetDataAsync(url);

            var document = await _webManager.Parser.ParseAsync(result.ResultHtml);

            return(ThreadHandler.ParseNewThread(document));
        }
        public async Task <NewThread> GetThreadCookiesAsync(int forumId, CancellationToken token = default)
        {
            string url    = string.Format(CultureInfo.InvariantCulture, EndPoints.NewThread, forumId);
            var    result = await this.webManager.GetDataAsync(url, token).ConfigureAwait(false);

            var document = await this.webManager.Parser.ParseDocumentAsync(result.ResultHtml, token).ConfigureAwait(false);

            return(ThreadHandler.ParseNewThread(document));
        }