Exemple #1
0
        public MongoProjectionStore(IMongoClient client, MongoRepositorySettings settings)
        {
            var database = client.GetDatabase(settings.DatabaseName);

            _projection = database.GetCollection <T>(settings.CollectionName);
        }
Exemple #2
0
        public MongoEventStorage(IMongoClient client, MongoRepositorySettings settings)
        {
            var database = client.GetDatabase(settings.DatabaseName);

            _events = database.GetCollection <MongoEvent>(settings.CollectionName);
        }