.Net messaging pub/sub pattern

Viewed 6505

So I have an .Net application that is running on NancyFx (needs to be platform agnostic). I have a requirement that I need to send a notification when a certain event happens (subscription). The notification will implement this interface:

public interface INotification
{
    public void Notify();
}

There will be many different implementations for this e.g. Email, Pushbullet, Pushover etc.

What I am struggling with is how to actually implement this so that all implementations of INotification will execute Notify() when there is a subscription.

Can anyone point me in the right direction.

I don't really want to use any sort of external queues, since the application will be running on the users machines.

So the application is a self-hosted, the client and the server are located on the users machine and it does not talk to the outside world, it's all internal.

3 Answers
Related