protected override IEnumerable <IEvent> Accept(IEvent @event) { log.DebugFormat("Notifier ({2}) invoked because {0} satisfied {1}", @event.GetType(), filter.GetType(), notifier.GetType()); notifier.Raise(@event); return(ListOfEvents.Create(new NotificationRaisedEvent(@event))); }
protected override IEnumerable <IEvent> Accept(IEvent @event) { log.DebugFormat("Incrementing counter ({2}) because {0} satisfied {1}", @event.GetType(), filter.GetType(), counter.GetType()); counter.Increment(@event); return(ListOfEvents.Create(new NumberOfSpecificEventEvent(counter.Count, @event))); }
protected override IEnumerable <IEvent> Accept(IEvent @event) { log.DebugFormat("Trigger ({2}) invoked because {0} satisfied {1}", @event.GetType(), filter.GetType(), trigger.GetType()); trigger.Trigger(@event); return(ListOfEvents.Create(new ActionTriggeredEvent(@event))); }
protected override IEnumerable <IEvent> Accept(IEvent @event) { log.DebugFormat("Incrementing counter ({1}) for {0}", @event.GetType(), counter.GetType()); counter.Increment(@event); return(ListOfEvents.Create(new NumberOfEventsEvent(counter.Count))); }