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