public void Dispatch(IEventStore eventStore, IEnumerable<DomainEvent> events) { var domainEvents = events.ToList(); if (!domainEvents.Any()) return; var notification = new DispatchNotification { DomainEvents = _serializer.Serialize(domainEvents) }; _topicClient.Send(new BrokeredMessage(notification)); }
public void Dispatch(IEnumerable <DomainEvent> events) { var domainEvents = events.ToList(); if (!domainEvents.Any()) { return; } var notification = new DispatchNotification { DomainEvents = _serializer.Serialize(domainEvents) }; _topicClient.Send(new BrokeredMessage(notification)); }