public EventStore(IEventVisitorFactory visitorsFactory, IEventReaderCreator readerCreator, IMongoDatabase storageDatabase, ISystemClock time) { this.time = time; this.visitorsFactory = visitorsFactory; this.readerCreator = readerCreator; eventsCollection = storageDatabase.GetCollection <BsonDocument>("events"); }
public Snapshot(IEventVisitorFactory visitorsFactory, IEventReaderCreator readerCreator, IMongoDatabase database, ISystemClock time, IOptions <EventsOptions> options) { this.visitorsFactory = visitorsFactory; this.readerCreator = readerCreator; this.time = time; eventsCollection = database.GetCollection <BsonDocument>("events"); makeSnapshotForOlderThan = options.Value.MakeSnapshotForOlderThan; startSnapshotMakingLimit = options.Value.StartSnapshotMakingLimit; }
public StorageStore(IEventStore eventStore, IEventVisitorFactory visitorsFactory) { this.eventStore = eventStore; this.visitorsFactory = visitorsFactory; }