private static void EnsureRedisConnection(ConfigurationProviderSettings settings)
 {
     if (_connectionMultiplexer == null || _connectionMultiplexer.IsConnected == false)
     {
         lock (LockObject)
         {
             if (_connectionMultiplexer == null || _connectionMultiplexer.IsConnected == false)
             {
                 _connectionMultiplexer = ConnectionMultiplexer.Connect(settings.RedisConnectionString);
                 _subscriber            = _connectionMultiplexer.GetSubscriber();
             }
         }
     }
 }
 public MongoConfigurationDatasource(IConfiguration configurationService)
 {
     _settings   = configurationService.GetSection(Constants.AppConfigSection).Get <ConfigurationProviderSettings>();
     _repository = new ConfigurationMongoRepository(_settings.MongoConnectionString);
 }