public bool Exists(string aggregateRootId, long maxGlobalSequenceNumber = long.MaxValue)
            {
                var stopwatch = Stopwatch.StartNew();

                try
                {
                    return(_innnerAggregateRootRepository
                           .Exists(aggregateRootId, maxGlobalSequenceNumber));
                }
                finally
                {
                    _operationProfiler.RecordAggregateRootExists(stopwatch.Elapsed, aggregateRootId);
                }
            }
Пример #2
0
 public bool Exists(string aggregateRootId, long globalSequenceNumberCutoff)
 {
     return(_aggregateRootRepository.Exists(aggregateRootId, globalSequenceNumberCutoff));
 }
 public bool Exists(string aggregateRootId, long maxGlobalSequenceNumber = long.MaxValue)
 {
     return(_innerAggregateRootRepository.Exists(aggregateRootId, maxGlobalSequenceNumber));
 }