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; }
public bool Exists(string aggregateRootId, long maxGlobalSequenceNumber = long.MaxValue) { return InnerAggregateRootRepository.Exists(aggregateRootId, maxGlobalSequenceNumber); }