public ConnectionlessProcessor( IMigrationGenerator generator, IRunnerContext context, IMigrationProcessorOptions options) { _logger = new AnnouncerFluentMigratorLogger(context.Announcer); _legacyOptions = options; DatabaseType = context.Database; Generator = generator; Announcer = context.Announcer; Options = options.GetProcessorOptions(connectionString: null); }
public IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options) { var processorOptions = options.GetProcessorOptions(connectionString); return(new ConnectionlessProcessor( new PassThroughGeneratorAccessor(_generator), new AnnouncerFluentMigratorLogger(announcer), new ProcessorOptionsSnapshot(processorOptions), new OptionsWrapper <SelectingProcessorAccessorOptions>( new SelectingProcessorAccessorOptions() { ProcessorId = _databaseId, }))); }