예제 #1
0
        public DbMigrationRunner(ILogger <DbMigrationRunner> logger,
                                 IOptionsMonitor <MigrationOptions> optionsAccessor, IDbContextFactory dbContextFactory,
                                 EmbeddedResourceProvider resourceProvider)
        {
            _logger           = logger;
            _optionsAccessor  = optionsAccessor;
            _dbContextFactory = dbContextFactory;
            _resourceProvider = resourceProvider;

            _hashProvider = new HashProvider();
        }
 public ImportDefaultLocaleStringListStartupTask(
     ILogger <ImportDefaultLocaleStringListStartupTask> logger,
     IUnitOfWorkFactory unitOfWorkFactory, IDbContextFactory dbContextFactory,
     EmbeddedResourceProvider resourceProvider, LocaleStringSerializer serializer, ILocaleStringImporter importer)
 {
     _logger            = logger;
     _unitOfWorkFactory = unitOfWorkFactory;
     _dbContextFactory  = dbContextFactory;
     _resourceProvider  = resourceProvider;
     _serializer        = serializer;
     _importer          = importer;
 }