System.Collections.Concurrent.ConcurrentBag.Add(Abot.Tests.Integration.PageResult)

Here are the examples of the csharp api class System.Collections.Concurrent.ConcurrentBag.Add(Abot.Tests.Integration.PageResult) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: abot
Source File: CrawlTestBase.cs
private void crawler_PageCrawlCompleted(object sender, PageCrawlCompletedArgs e)
        {
            PageResult pageResult = new PageResult();
            pageResult.Url = e.CrawledPage.Uri.AbsoluteUri;
            if(e.CrawledPage.HttpWebResponse != null)
                pageResult.HttpStatusCode = Convert.ToInt32(e.CrawledPage.HttpWebResponse.StatusCode);

            _actualCrawledPages.Add(pageResult);
        }