public HeadBasedMongoEventStore(IMongoDatabase mongoDatabase, EventStoreSettings settings)
        {
            //_eventSerializer = new DomainEventSerializer();
            //_mongoDatabase = mongoDatabase;
            //_settings = settings;
            //Streams = mongoDatabase.GetCollection<EventStream>(settings.StreamsesCollectionName);

            //_settings = settings;
            //_updater = Builders<EventStream>.Update;
        }
Example #2
0
        public StreamBasedEventStore(IMongoDatabase mongoDatabase, EventStoreSettings settings)
        {
            _eventSerializer = new DomainEventSerializer();
            _mongoDatabase   = mongoDatabase;
            _settings        = settings;
            Streams          = mongoDatabase.GetCollection <EventStream>(settings.StreamsesCollectionName);

            _settings = settings;
            _updater  = Builders <EventStream> .Update;
        }
        public HeadBasedMongoEventStore(IMongoDatabase mongoDatabase, EventStoreSettings settings)
        {
            //_eventSerializer = new DomainEventSerializer();
            //_mongoDatabase = mongoDatabase;
            //_settings = settings;
            //Streams = mongoDatabase.GetCollection<EventStream>(settings.StreamsesCollectionName);

            //_settings = settings;
            //_updater = Builders<EventStream>.Update;
        }