public UpdateFileConfigurationEventHandler(ConfigCacheOptions option, IFileConfigurationRepository fileConfigurationRepository, IAbpFileConfigurationRepository abpFileConfigurationRepository) { _option = option; _fileConfigurationRepository = fileConfigurationRepository; _abpFileConfigurationRepository = abpFileConfigurationRepository; }
public FileConfigurationRepository( ConfigCacheOptions option, IOcelotCache <FileConfiguration> cache, IAbpFileConfigurationRepository abpFileConfigurationRepository, IOcelotLoggerFactory loggerFactory) { _option = option; _cache = cache; _abpFileConfigurationRepository = abpFileConfigurationRepository; _logger = loggerFactory.CreateLogger <FileConfigurationRepository>(); }
public UpdateFileConfigurationEventHandler(ConfigCacheOptions option, IFileConfigurationRepository fileConfigurationRepository, IAbpFileConfigurationRepository abpFileConfigurationRepository, IInternalConfigurationRepository internalConfigRepo, IInternalConfigurationCreator internalConfigCreator, ILogger <UpdateFileConfigurationEventHandler> logger) { _option = option; _fileConfigurationRepository = fileConfigurationRepository; _abpFileConfigurationRepository = abpFileConfigurationRepository; _internalConfigRepo = internalConfigRepo; _internalConfigCreator = internalConfigCreator; _logger = logger; }
private void GivenIHaveAConfiguration() { var loggerFactory = new Mock <IOcelotLoggerFactory>(); var logger = new Mock <IOcelotLogger>(); loggerFactory.Setup(x => x.CreateLogger <EfCoreFileConfigurationRepository>()).Returns(logger.Object); _abpFileConfigurationRepository = new EfCoreFileConfigurationRepository(_ocelotRepository, loggerFactory.Object); _fileConfigRepository = new FileConfigurationRepository( _configCacheOptions, _cachOptions.Object, _abpFileConfigurationRepository, _loggerFactory.Object); }
private void GivenIHaveAConfiguration() { var loggerFactory = Substitute.For <IOcelotLoggerFactory>(); var logger = Substitute.For <IOcelotLogger>(); loggerFactory.CreateLogger <EfCoreFileConfigurationRepository>().Returns(logger); _abpFileConfigurationRepository = new EfCoreFileConfigurationRepository(_ocelotRepository, loggerFactory); _fileConfigRepository = new FileConfigurationRepository( _configCacheOptions, _cachOptions, _abpFileConfigurationRepository, _loggerFactory); }