public AuditRepository(MongoDbDatabaseConfiguration configuration, IMongoClient mongoClient, IMongoDbNamingHelper namingHelper = null) { this.mongoClient = mongoClient; databaseName = namingHelper.GetDatabaseName(configuration, "admin"); mongoClient.GetDatabase(databaseName); }
public IMongoDatabase GetDatabase(string dbName) { return(mongoClient.GetDatabase(namingHelper.GetDatabaseName(configuration, dbName))); }