コード例 #1
0
        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)));
        }
コード例 #2
0
        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)));
        }
コード例 #3
0
        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)));
        }
コード例 #4
0
 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)));
 }