Пример #1
0
 /// <summary>
 /// Adds the given <paramref name="snapshot" /> to the internal storage
 /// </summary>
 /// <param name="snapshot">Snapshot to be saved</param>
 public void Add(SnapshotBase snapshot)
 {
     _documentStoreCache.Add(snapshot);
     _datastore.Store(snapshot);
 }
Пример #2
0
 /// <summary>
 /// Adds the given <paramref name="@event" /> to the internal storage
 /// </summary>
 /// <param name="event">The event</param>
 public void Add(IDomainEvent @event)
 {
     _documentStoreCache.Add(@event);
     _persistentEventStore.Add(@event);
 }