NimaAra / Easy.MessageHub

No need for .NET Events! A thread-safe, high performance & easy to use cross platform implementation of the Event Aggregator Pattern.
MIT License
258 stars 41 forks source link

UnSubscribe method causes ArgumentNullException #8

Closed GraySerg closed 7 years ago

GraySerg commented 7 years ago

Field _localSubscriptions is null, if Publish method is not called. Try to Subscribe, then UnSunbscribe and bang! ArgumentNullException is here. And it's [ThreadStatic], so on Stop event on windows service it also null.

NimaAra commented 7 years ago

Thanks for the find. This should now be fixed as part of v3.2.1 please validate.