Exemplo n.º 1
0
 private async Task RollbackAggregates(ISession session)
 {
     foreach (var aggregateDescriptor in session.TrackedAggregates.Where(d => d.Aggregate.HasPendingChanges))
     {
         await _repository.Reload(aggregateDescriptor.Aggregate.Id);
     }
 }