Beispiel #1
0
            public AggregateRoot Get<TAggregateRoot>(string aggregateRootId, IUnitOfWork unitOfWork, long maxGlobalSequenceNumber = long.MaxValue, bool createIfNotExists = false)
            {
                var stopwatch = Stopwatch.StartNew();

                var aggregateRootInfo = InnerAggregateRootRepository
                    .Get<TAggregateRoot>(aggregateRootId, unitOfWork, maxGlobalSequenceNumber, createIfNotExists);

                _timeSpentHydratingAggregateRoots += stopwatch.Elapsed;

                return aggregateRootInfo;
            }
Beispiel #2
0
 public bool Exists(string aggregateRootId, long maxGlobalSequenceNumber = long.MaxValue)
 {
     return InnerAggregateRootRepository.Exists(aggregateRootId, maxGlobalSequenceNumber);
 }