コード例 #1
0
 public virtual void SendEvents(IList <IBusinessLogicEvent> events)
 {
     if (events.Any())
     {
         foreach (var @event in events)
         {
             _eventBus.SendEvent(@event);
         }
     }
 }
コード例 #2
0
        public virtual Task SendEvent(IBusinessLogicEvent businessLogicEvent)
        {
            Task task = null;

            if (businessLogicEvent != null)
            {
                task = _eventBus.SendEvent(businessLogicEvent);
            }

            return(task);
        }