Exemple #1
0
 public ConfigurationFilesWatcher(IConfigurationLocationsParser configurationLocationsParser)
 {
     ConfigurationLocationsParser = configurationLocationsParser;
     DataChanges  = Broadcaster;
     refreshTimer = new Timer(_ => Broadcaster.Post(true));
     CreateRootWatcher();
 }
 /// <summary>
 /// Constructor for the 'FileBasedConfigItemsSource' class
 /// </summary>
 /// <param name="configurationLocations">Encapsulates the retrieval of all configuration location behavior</param>
 /// <param name="environmentVariableProvider">Encapsulates the retrieval of all environment variables</param>
 /// <param name="fileSystem">Encapsulates the file system behavior</param>
 /// <param name="configDecryptor">Encapsulates the decryption behavior for a config item</param>
 public FileBasedConfigItemsSource(IConfigurationLocationsParser configurationLocations, IEnvironmentVariableProvider environmentVariableProvider, IFileSystem fileSystem, ConfigDecryptor configDecryptor)
 {
     _configurationLocations      = configurationLocations;
     _environmentVariableProvider = environmentVariableProvider;
     _fileSystem      = fileSystem;
     _configDecryptor = configDecryptor;
 }
Exemple #3
0
 /// <summary>
 /// Constructor for the 'FileBasedConfigItemsSource' class
 /// </summary>
 /// <param name="configurationLocations">Encapsulates the retrieval of all configuration location behavior</param>
 /// <param name="environmentVariableProvider">Encapsulates the retrieval of all environment variables</param>
 /// <param name="fileSystem">Encapsulates the file system behavior</param>
 /// <param name="configDecryptor">Encapsulates the decryption behavior for a config item</param>
 public FileBasedConfigItemsSource(
     IConfigurationLocationsParser configurationLocations,
     IFileSystem fileSystem,
     IEnvironment environment,
     ConfigDecryptor configDecryptor)
 {
     _configurationLocations = configurationLocations;
     _fileSystem             = fileSystem;
     _environment            = environment;
     _configDecryptor        = configDecryptor;
 }