HTML-Renderer
HTML-Renderer copied to clipboard
using Dictionary for caching causes multi-thread issues.
In RAdapter and FontsHandler, Dictionaries are used to cached brushes, pens and fonts.
Single instance pattern is used by PdfSharpAdapter, and this instance is used by all HtmlContainers generated during system running time.
It causes problem when using this single instance in a multi-thread environment. Refer Here
Please replace Dictionary with ConcurrentDictionary.
I can assure this bug. This happened for us and had to spent hours to figure out the issue.