public PeriodicJobRunner(ILogger <PeriodicJobRunner> logger, IConfigurationUpdaterJob job, string applicationName, int refreshInterval)
 {
     _logger                  = logger;
     _job                     = job;
     _applicationName         = applicationName;
     _refreshInterval         = refreshInterval;
     _cancellationTokenSource = new CancellationTokenSource();
 }
 public ConfigurationUpdaterJobTests()
 {
     _mockSettingsCacheManager       = new Mock <ISettingsCacheManager>();
     _mockConfigurationStorageClient = new Mock <IConfigurationStorageClient>();
     _configurationUpdaterJob        = new ConfigurationUpdaterJob(_mockSettingsCacheManager.Object, _mockConfigurationStorageClient.Object,
                                                                   NullLogger <ConfigurationUpdaterJob> .Instance);
     _handler = new EmptyCacheMissHandler();
     _token   = CancellationToken.None;
 }
 public PeriodicJobRunner(ILogger <PeriodicJobRunner> logger, IConfigurationUpdaterJob job, IConfiguration configuration)
     : this(logger, job, configuration.GetSection(Constants.Env.DYNAMIC_CONFIG_APPLICATION_NAME).Value,
            int.Parse(configuration.GetSection(Constants.Env.DYNAMIC_CONFIG_REFRESH_INTERVAL_MS).Value))
 {
 }