Пример #1
0
        public AuditRepository(MongoDbDatabaseConfiguration configuration, IMongoClient mongoClient, IMongoDbNamingHelper namingHelper = null)
        {
            this.mongoClient = mongoClient;

            databaseName = namingHelper.GetDatabaseName(configuration, "admin");
            mongoClient.GetDatabase(databaseName);
        }
Пример #2
0
 public IMongoDatabase GetDatabase(string dbName)
 {
     return(mongoClient.GetDatabase(namingHelper.GetDatabaseName(configuration, dbName)));
 }