Exemplo n.º 1
0
 public SearchQueryMongo(IMongoDBSearchFactory mongoDBSearchFactory, IConfigMongDB configMongDB, string collectionSearch)
 {
     _mongoDBSearchFactory = mongoDBSearchFactory;
     _configMongDB         = configMongDB;
     _database             = _mongoDBSearchFactory.MongoClient(_configMongDB.ConnectionString).GetDatabase(_configMongDB.DatabaseMongDB);
     _collectionSearch     = collectionSearch;
 }
Exemplo n.º 2
0
 public CacheMongo(IConfigMongDB configMongDB, IMongoDBSearchFactory mongoDBSearchFactory)
 {
     _configMongDB         = configMongDB;
     _mongoDBSearchFactory = mongoDBSearchFactory;
     _collection           = _mongoDBSearchFactory.MongoClient(_configMongDB.ConnectionString)
                             .GetDatabase(_configMongDB.DatabaseMongDB).GetCollection <CacheResult>(_configMongDB.CollectionCacheKey);
 }
Exemplo n.º 3
0
 public MongoSearch(IMongoDBSearchFactory mongoDBSearchFactory, IConfigMongDB configMongDB)
 {
     _mongoDBSearchFactory = mongoDBSearchFactory;
     _configMongDB         = configMongDB;
 }