Ejemplo n.º 1
0
        public ConfigurationBase GetConfigReaderObject(ConfigurationBase configurationBase = null)
        {
            string GokConfigurationManagmentDefaultType = string.Empty;
            if (configurationBase == null)
            {
                AppConfigurationReader appConfigReader = new AppConfigurationReader();

                GokConfigurationManagmentDefaultType = (string)appConfigReader.Get("gooConfigurationDefaultType");
            }
            else
                return configurationBase;

            if (GokConfigurationManagmentDefaultType == "appConfig")
                return new AppConfigurationReader();
            else
                return new AppConfigurationReader();
        }
Ejemplo n.º 2
0
        public ConfigurationBase GetConfigReaderObject(ConfigurationBase configurationBase = null)
        {
            string GokConfigurationManagmentDefaultType = string.Empty;

            if (configurationBase == null)
            {
                AppConfigurationReader appConfigReader = new AppConfigurationReader();

                GokConfigurationManagmentDefaultType = (string)appConfigReader.Get("gooConfigurationDefaultType");
            }
            else
            {
                return(configurationBase);
            }

            if (GokConfigurationManagmentDefaultType == "appConfig")
            {
                return(new AppConfigurationReader());
            }
            else
            {
                return(new AppConfigurationReader());
            }
        }