Open jakubs79 opened 1 year ago
Hi @jakubs79, I'm not overly familiar with DictionaryAdapter (I've never used it myself) and I'm not even 100 % sure whether we're still maintaining that thing (see #394 about that), but just in case we do: Could you please add a minimal but complete code example that reproduces this exception? Thanks.
Hi, I think there is a bug in DictionaryAdapper - particulary in DictionaryAdapterInstance class (or ComponentAttribute class depending on approach :)).
Extended properties is instantianted as Dictionary wich is not thread safe.
My interface (some code omitted for clarity) is defined as
and is initialized on startup and used as singleton
In ComponentAttribute class there is such code:
which writes to Dictionary and it causes occasionally a exception in multihread environment (web page in my case). Stack trase from my app:
The code should be fixed to be thread safe in that place.