Sometimes I'm getting NullReferenceException when trying to register listeners from multiple threads at the same time.
Call stack:
at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add)
at MissingFrom.Net.WeakEventManager.AddWeakEventListener[T](T source, Action'2 handler)
Locking around usages of _listeners dictionary should make the class thread safe
Sometimes I'm getting NullReferenceException when trying to register listeners from multiple threads at the same time.
Call stack:
at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add)
at MissingFrom.Net.WeakEventManager.AddWeakEventListener[T](T source, Action'2 handler)
Locking around usages of _listeners dictionary should make the class thread safe