Пример #1
0
            public void Save(Guid batchId, IEnumerable<EventData> events)
            {
                var stopwatch = Stopwatch.StartNew();

                InnerEventStore.Save(batchId, events);

                _timeSpentSavingEvents += stopwatch.Elapsed;
            }
Пример #2
0
            public IEnumerable<EventData> Load(string aggregateRootId, long firstSeq = 0)
            {
                var stopwatch = Stopwatch.StartNew();

                var domainEvents = InnerEventStore.Load(aggregateRootId, firstSeq).ToList();

                _timeSpentLoadingEvents += stopwatch.Elapsed;

                return domainEvents;
            }
Пример #3
0
 public long GetNextGlobalSequenceNumber()
 {
     return InnerEventStore.GetNextGlobalSequenceNumber();
 }
Пример #4
0
 public IEnumerable<EventData> Stream(long globalSequenceNumber = 0)
 {
     return InnerEventStore.Stream(globalSequenceNumber);
 }