public IEnumerable <IDomainEvent> FlushEvents() { return(EventCoordinator.Flush()); }
protected EntityBase(Guid id, EventCoordinator eventCoordinator) { _id = id; _eventCoordinator = eventCoordinator; }
protected AggregateRootBase(EventCoordinator eventCoordinator) : base(eventCoordinator.AggregateRootId, eventCoordinator) { }