public void Save(Guid batchId, IEnumerable<EventData> events) { var stopwatch = Stopwatch.StartNew(); InnerEventStore.Save(batchId, events); _timeSpentSavingEvents += stopwatch.Elapsed; }
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; }
public long GetNextGlobalSequenceNumber() { return InnerEventStore.GetNextGlobalSequenceNumber(); }
public IEnumerable<EventData> Stream(long globalSequenceNumber = 0) { return InnerEventStore.Stream(globalSequenceNumber); }