예제 #1
0
 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));
 }
예제 #2
0
 public Repository(IEventStore eventStore, IPendingEventFactory eventFactory)
 {
     _eventStore   = eventStore ?? throw new ArgumentNullException(nameof(eventStore));
     _eventFactory = eventFactory ?? throw new ArgumentNullException(nameof(eventFactory));
 }
예제 #3
0
 public EventStoreThroughput(IEventStore store, IPendingEventFactory factory)
 {
     _store   = store ?? throw new ArgumentNullException(nameof(store));
     _factory = factory ?? throw new ArgumentNullException(nameof(factory));
 }