public ScriptRunner(IMigrationRepository migrationRepository, ILogger <ScriptRunner> logger) { logger.LogInformation("ScriptRunner initiating update migrations"); var migration = migrationRepository.UpdateMigrations(); migration.Wait(); logger.LogInformation("ScriptRunner completed update migrations"); }
/// <summary> /// 初始化类<see cref="DataMigrator"/>。 /// </summary> /// <param name="migrations">迁移列表。</param> /// <param name="options">数据选项。</param> /// <param name="reposority">迁移数据库操作接口。</param> /// <param name="logger">日志接口。</param> public DataMigrator(IEnumerable <IDataMigration> migrations, IOptions <DatabaseOptions> options, IMigrationRepository reposority, ILogger <DataMigrator> logger) { _reposority = reposority; Logger = logger; _provider = options.Value.Provider; _migrations = migrations.Where(m => !m.GetType().GetTypeInfo().IsDefined(typeof(NotMappedAttribute))) .OrderByDescending(m => m.Priority) .ToList(); }
public MongoMigrationService( IMongoDatabase mongoDatabase, IMigrationRepository migrationRepository, IMigrationDiscoverService migrationDiscoverService, IDotNetProvider dotNetProvider) { _mongoDatabase = mongoDatabase; _migrationRepository = migrationRepository; _migrationDiscoverService = migrationDiscoverService; _dotNetProvider = dotNetProvider; }
public CaseManagerImportService( IUserRepository userRepository, IReferenceDataRepository referenceDataRepository, IMigrationRepository migrationRepository, IImportLogger logger) { this._userRepository = userRepository; this._referenceDataRepository = referenceDataRepository; this._migrationRepository = migrationRepository; _logger = logger; }
public TransferStrategy( IBalanceService balanceService, ILogFactory logFactory, IMatchingEngineClient meClient, IMigrationRepository migrationRepository, ITransferOptions options) { _balanceService = balanceService; _log = logFactory.CreateLog(this); _meClient = meClient; _migrationRepository = migrationRepository; _options = options; }
public MigrationHelper( Lazy <IMigrationDbContext> dbContextLazy, IMigrationRepository <MigrationHistory> migrationRepository, ISystemClock systemClock, IPathResolver pathResolver, IMigrationConfig config, ILogger logger) { this.dbContextLazy = dbContextLazy; this.migrationRepository = migrationRepository; this.systemClock = systemClock; this.pathResolver = pathResolver; this.config = config; this.logger = logger; }
public NotificationMapper(IMigrationRepository migrationRepository, IReferenceDataRepository referenceDataRepository, IImportLogger logger, IPostcodeService postcodeService) { _migrationRepository = migrationRepository; _referenceDataRepository = referenceDataRepository; _logger = logger; _postcodeService = postcodeService; // This is a database-based value, but static from the runtime point of view, so we fetch it once here. _postMortemOutcomeType = _referenceDataRepository.GetTreatmentOutcomeForTypeAndSubType( TreatmentOutcomeType.Died, TreatmentOutcomeSubType.Unknown).Result; }
public PatientDetailsModel( INotificationService service, IAuthorizationService authorizationService, INotificationRepository notificationRepository, IAlertRepository alertRepository, IPostcodeService postcodeService, IReferenceDataRepository referenceDataRepository, IMigrationRepository migrationRepository, IUserHelper userHelper) : base(service, authorizationService, notificationRepository, alertRepository, userHelper) { _postcodeService = postcodeService; _referenceDataRepository = referenceDataRepository; _migrationRepository = migrationRepository; CurrentPage = NotificationSubPaths.EditPatientDetails; }
public NotificationImportService(INotificationMapper notificationMapper, INotificationRepository notificationRepository, INotificationImportRepository notificationImportRepository, IImportLogger logger, IHub sentryHub, IMigrationRepository migrationRepository, IMigratedNotificationsMarker migratedNotificationsMarker, ISpecimenService specimenService, IImportValidator importValidator) { sentryHub.ConfigureScope(s => { s.SetTag("context", "migration"); }); _notificationMapper = notificationMapper; _notificationRepository = notificationRepository; _notificationImportRepository = notificationImportRepository; _logger = logger; _migrationRepository = migrationRepository; _migratedNotificationsMarker = migratedNotificationsMarker; _specimenService = specimenService; _importValidator = importValidator; }
public MigrationManager(IServiceProvider container, IMigrationRepository migrationRepository, ILogger <MigrationManager> logger = null) { _container = container; _migrationRepository = migrationRepository; _logger = logger ?? NullLogger <MigrationManager> .Instance; }
public MigrationService(IMigrationRepository migrationRepository) { _migRepo = migrationRepository; }
public Migrator(IMigrationRepository repo, IDatabase db, Direction direction = Direction.Up) { _repo = repo; _db = db; _direction = direction; }
public MigrationController(IMigrationRepository migrationRepository) { MigrationRepository = migrationRepository; }
/// <summary> /// Initializes a new instance of <see cref="MigrationService"/> /// </summary> /// <param name="repository"></param> public MigrationService(IMigrationRepository repository) { this.repository = repository; }
public MigrationManager(IServiceProvider container, IMigrationRepository migrationRepository) { _container = container; _migrationRepository = migrationRepository; }