public virtual void SendEvents(IList <IBusinessLogicEvent> events) { if (events.Any()) { foreach (var @event in events) { _eventBus.SendEvent(@event); } } }
public virtual Task SendEvent(IBusinessLogicEvent businessLogicEvent) { Task task = null; if (businessLogicEvent != null) { task = _eventBus.SendEvent(businessLogicEvent); } return(task); }