Skip to content Skip to sidebar Skip to footer

Is Html Agility Pack For .net Thread Safe For Read-only Access Using A Single Htmldocument Instance Across Parallel Threads?

Is HTML Agility Pack for .net thread safe for read-only access using a single HtmlDocument instance across parallel threads? I am scraping a single page but scraping some parts of

Solution 1:

I've used HTMLAgilityPack in my multithreading program and it works fine. I think you only need to safe your program by using some methods like locking blocks.

e.g lock(asyncObject) { // do html processing... }

Post a Comment for "Is Html Agility Pack For .net Thread Safe For Read-only Access Using A Single Htmldocument Instance Across Parallel Threads?"