pressf12/pubnub — pull request #4 by martindevans (2012-08-23 16:09:12+00:00)
Title: Fixed multithreading issues

- PubnubConfiguration.cs
- The singleton of PubnubConfiguration is generated in such a way that all threads will get a reference to the same PubnubConfiguration.cs
- This only matters is PubnubConfiguration is mutable, which it is at the moment but it shouldn't be (breaking API change required to fix this)

- Pubnub.cs
- Changed dictionary of subscriptions to a ConcurrentDictionary
- No more lock(_sync)
- Contains checks weren't covered by locks before, which was not safe. It is safe with ConcurrentDictionary
- Probably marginally faster than locks