GoranSiska / LightMessageBus

MIT License
6 stars 1 forks source link

Unsubscribe #4

Open GoranSiska opened 7 years ago

GoranSiska commented 7 years ago

Add support for unsubscribing from messages. Consider various scenarios for unsubscribing:

Eg.:

MessageBus.Defaul.FromAny().Unsubscribe();
runemoennike commented 5 years ago

Hi @GoranSiska

Love the simplicity of this message bus, but we have a memory leak in our current project due to the lack of an unsubscribe method.

I'd be happy to create a PR for it, if you'll release an update then?

Edit: I just discovered that you're using WeakReference, so there should be no issue with memory leak in our case, actually. Nvm :-)

GoranSiska commented 5 years ago

Great! Hope you locate your problem.

Anyway, if you do create any enhancements I'll be happy to add them to the project.

ghost commented 4 years ago

I think it's really well made. Simple, but apart from the test code, there seems to be a lack of MVVM examples. But I will cheer you up.