/// <summary> /// This is the method to set the environment /// </summary> /// <param name="environment"></param> public static void SetEnvironment(Environment environment) { foreach (ResourceConfigInterface instance in registeredInstances.Values) { instance.SetEnvironment(environment); } ApiConfig.environment = environment; }
public void SetEnvironment(Environment environment) { if (Constants.MAPPINGS.ContainsKey(environment)) { List <String> tuple = Constants.MAPPINGS[environment]; this.host = tuple[0]; this.context = tuple[1]; } }