static void ReadFeatureEnvironmentVariables()
 {
     try {
         foreach (FeatureSwitch feature in FeatureSwitchEnvironmentVariables.GetFeatures())
         {
             features [feature.Name] = feature;
         }
     } catch (Exception ex) {
         LoggingService.LogError("Unable to read environment variables", ex);
     }
 }
 internal static void OnFeaturesChanged(bool updateProperties = true)
 {
     try {
         lock (features) {
             if (updateProperties)
             {
                 UpdateProperties();
             }
             FeatureSwitchEnvironmentVariables.Update(features.Values);
         }
     } catch (Exception ex) {
         LoggingService.LogError("Unable to update environment variables", ex);
     }
 }