public async Task <IEnumerable <ICommitedEvent> > GetEventsForwardAsync(Guid aggregateId, int version) { var result = await _eventStore.GetEventsForwardAsync(aggregateId, version).ConfigureAwait(false); CalledMethods |= EventStoreMethods.GetEventsForwardAsync; return(result); }
public async Task <IEnumerable <ICommitedEvent> > GetAllEventsAsync(Guid id) { var result = await _eventStore.GetAllEventsAsync(id).ConfigureAwait(false); CalledMethods |= EventStoreMethods.GetAllEventsAsync; return(result); }
public async Task <ICommitedSnapshot> GetLatestSnapshotByIdAsync(Guid aggregateId) { var result = await _eventStore.GetLatestSnapshotByIdAsync(aggregateId).ConfigureAwait(false); CalledMethods |= EventStoreMethods.GetLatestSnapshotByIdAsync; return(result); }
public async Task <IList <ICommitedEvent> > GetEventsByTypeAsync(IList <Type> eventTypes, DateTime fromTimestamp) { var result = await _eventStore.GetEventsByTypeAsync(eventTypes, fromTimestamp).ConfigureAwait(false); CalledMethods |= EventStoreMethods.GetEventsByTypeAsync; return(result); }
public async Task <IList <ICommitedEvent> > GetEventsByAggregateId(Guid aggregateId) { var result = await _eventStore.GetEventsByAggregateId(aggregateId).ConfigureAwait(false); CalledMethods |= EventStoreMethods.GetEventsByAggregateId; return(result); }
public async Task SaveProjectionAsync(ISerializedProjection projection) { await _eventStore.SaveProjectionAsync(projection); CalledMethods |= EventStoreMethods.SaveAggregateProjection; }
public async Task SaveAsync(IEnumerable <ISerializedEvent> collection) { await _eventStore.SaveAsync(collection).ConfigureAwait(false); CalledMethods |= EventStoreMethods.SaveAsync; }
public void Rollback() { _eventStore.Rollback(); CalledMethods |= EventStoreMethods.Rollback; }
public async Task CommitAsync() { await _eventStore.CommitAsync(); CalledMethods |= EventStoreMethods.CommitAsync; }
public void BeginTransaction() { _eventStore.BeginTransaction(); CalledMethods |= EventStoreMethods.BeginTransaction; }
public void Dispose() { _eventStore.Dispose(); CalledMethods |= EventStoreMethods.Dispose; }
public async Task SaveSnapshotAsync(ISerializedSnapshot snapshot) { await _eventStore.SaveSnapshotAsync(snapshot).ConfigureAwait(false); CalledMethods |= EventStoreMethods.SaveSnapshotAsync; }
public EventStoreWrapper(IEventStore eventStore) { _eventStore = eventStore; CalledMethods &= EventStoreMethods.Ctor; }