Ejemplo n.º 1
0
        public void RegisterSubscriber(string publishedEventName, EventHandler subscriber)
        {
            PublishedEvent publishedEvent = GetEvent(publishedEventName);

            publishedEvent.AddSubscriber(subscriber);
        }
Ejemplo n.º 2
0
        public void RegisterPublisher(string publishedEventName, object publisher, string eventName)
        {
            PublishedEvent @event = GetEvent(publishedEventName);

            @event.AddPublisher(publisher, eventName);
        }