Ejemplo n.º 1
0
        public void SetConfig(string env)
        {
            switch (env)
            {
            case "production":
                currentConfig = productionConfig;
                break;

            case "development":
                currentConfig = developmentConfig;
                break;

            case "external":
                currentConfig = developmentExternalConfig;
                break;
            }
        }
Ejemplo n.º 2
0
 public Config()
 {
     productionConfig          = new ConfigServer("192.168.0.88", "University", "kirillius", "kirillius1991");
     developmentConfig         = new ConfigServer("DESKTOP-FREG6V4\\SQLEXPRESS", "University", "kirillius", "kirillius1991");
     developmentExternalConfig = new ConfigServer("185.158.153.107", "dissertation", "rental", "kirillius1991");
 }