Not really a problem at the moment as we only have add subscription, but in order to remove subscriptions, we will need to move to the thread-safe ConcurrectDictionary class, as used in the IOWrapper DirectInput / XInput providers, else we could remove a dictionary while the PollThread is iterating the dictionary.
Not really a problem at the moment as we only have add subscription, but in order to remove subscriptions, we will need to move to the thread-safe ConcurrectDictionary class, as used in the IOWrapper DirectInput / XInput providers, else we could remove a dictionary while the PollThread is iterating the dictionary.