public DatabaseMigrationRunner( IMongoClient client, IAdvancedMigrationRunner migrationRunner, string runningVersion) { _runningVersion = runningVersion; _client = client; _migrationRunner = migrationRunner; }
public DatabaseMigrationRunner( IOptions <MongoMigrationSettings> options, IAdvancedMigrationRunner migrationRunner) : this( new MongoClient(options.Value.ConnectionString), migrationRunner, options.Value.RunningVersion) { _options = options; _databaseName = options.Value.Database; }