public async Task SaveAggregateAsync(EventSourcedAggregate aggregate) { await _eventStore.SaveAggregateEventsAsync(aggregate.Id.ToString(), aggregate.UncommittedEvents()); aggregate.ClearUncommittedEvents(); }