Exemplo n.º 1
0
        public static string GetServerGroupSetting(String key)
        {
            GFXDServerGroupConfig config = null;

            try
            {
                config = (GFXDServerGroupConfig)(GetConfig().Sections["gfxdServerGroupConfig"]);
            }
            catch (Exception e)
            {
                throw new Exception("Encounter exception in GetServerGroupSetting()", e);
            }

            return(config.GFXDServerGroupSettings[key].Value);
        }
Exemplo n.º 2
0
        public static IList <String> GetServerGroupNames()
        {
            GFXDServerGroupConfig config       = null;
            IList <String>        serverGroups = new List <String>();

            try
            {
                config = (GFXDServerGroupConfig)(GetConfig().Sections["gfxdServerGroupConfig"]);
            }
            catch (Exception e)
            {
                throw new Exception("Encounter exception in GetServerGroupNames()", e);
            }
            foreach (GFXDServerGroupSetting group in config.GFXDServerGroupSettings)
            {
                serverGroups.Add(group.Value);
            }

            return(serverGroups);
        }