public void ApplyEvent(AggregateRoot aggregate, Event e) { }
/// <summary> /// Applies the event. /// </summary> /// <param name="e">The e.</param> protected void ApplyEvent(Event e) { if (e == null) throw new ArgumentNullException("e"); if (_eventDispatcher == null) throw new InvalidOperationException("EventDispatcher must be set first."); e.AggregateID = AggregateID; e.EventDate = DateTime.Now; if (!_useStorageBasedSequencing) e.EventSequence = ++LastEventSequence; _eventDispatcher.ApplyEvent(this, e); _changes.Add(e); // trackAsChange }