Exemplo n.º 1
0
 public void LoadConfiguration()
 {
     try
     {
         _configsettings = _sensuClientConfigurationReader.SensuClientConfig;
     }
     catch (Exception ex)
     {
         Log.Error(ex, "Error loading configuration:");
     }
 }
Exemplo n.º 2
0
 private void ReadConfigLocked()
 {
     try
     {
         rwlock.EnterWriteLock();
         _sensuClientConfig = LoadConfig();
         _configuration     = LoadConfiguration();
     }
     finally
     {
         rwlock.ExitWriteLock();
     }
 }
Exemplo n.º 3
0
 public void LoadConfiguration()
 {
     try
     {
         _configsettings = _sensuClientConfigurationReader.SensuClientConfig;
     }
     catch (Exception ex)
     {
         
         Log.Error(ex, "Error loading configuration:");
     }
     
 }
 private void ReadConfigLocked()
 {
     try
     {
         rwlock.EnterWriteLock();
         _sensuClientConfig = LoadConfig();
         _configuration = LoadConfiguration();
     }
     finally
     {
         rwlock.ExitWriteLock();
     }
 }