Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 457 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 457 Bytes

sharpmediator

Cool Mediator implementation using weak references

Nuget: sharpmediator

Super easy to use:

Subscribe to some message type

   var mediator = new Mediator();
   mediator.Subscribe<SomeType>(this, SomeMethod);

Publish!

All subscribers will be called:

   mediator.Publish(new SomeType());

Unsubscribe

Don't want to receive any more messages? Just unsubscribe :)

   mediator.Unsubscribe(this);