public void Dispatch(IEventSource eventSource) { foreach (var @event in eventSource.GetDomainEvents()) { Dispatch(@event); } eventSource.CommitDomainEvents(); }