public Repository(IEventStore eventStore, IPendingEventFactory pendingEventFactory, ISnapshotStore snapShotStore, ISnapshotFactory snapshotFactory) { _eventStore = eventStore ?? throw new ArgumentNullException(nameof(eventStore)); _pendingEventFactory = pendingEventFactory ?? throw new ArgumentNullException(nameof(pendingEventFactory)); _snapShotStore = snapShotStore ?? throw new ArgumentNullException(nameof(snapShotStore)); _snapshotFactory = snapshotFactory ?? throw new ArgumentNullException(nameof(snapshotFactory)); }
public Repository(IEventStore eventStore, IPendingEventFactory eventFactory) { _eventStore = eventStore ?? throw new ArgumentNullException(nameof(eventStore)); _eventFactory = eventFactory ?? throw new ArgumentNullException(nameof(eventFactory)); }
public EventStoreThroughput(IEventStore store, IPendingEventFactory factory) { _store = store ?? throw new ArgumentNullException(nameof(store)); _factory = factory ?? throw new ArgumentNullException(nameof(factory)); }