Beispiel #1
0
 public AggregateStore(
     EventStore eventStore,
     IAggregateSerializer serializer,
     ISnapshotDataStorage snapshotDataStorage)
 {
     this._eventStore          = eventStore;
     this._serializer          = serializer;
     this._snapshotDataStorage = snapshotDataStorage;
 }
Beispiel #2
0
 public SnapshotStore(IAggregateSerializer aggregateSerializer, InfrastructureContext db)
 {
     this.aggregateSerializer = aggregateSerializer ?? throw new ArgumentNullException("aggregateSerializer");
     this.db = db ?? throw new ArgumentNullException("db");
 }