| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Wow. Good find. Thank you.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
GetOrAdd is not running inside a lock, so if multiple threads try to serialize the same type, it could result in the throw new InvalidOperationException("Failed to get or add.");.
for example :
fix :
after failing to Add() item try to Get it again before raising exception