Exemplo n.º 1
0
        static Dictionary <SysCategory, string> GetLogWebApplicationsNameFromFile()
        {
            List <KVEdm> kVEdms = Log2NetConfig.GetSectionVal("userSystemNames");

            if (kVEdms.Count > 0)
            {
                Dictionary <SysCategory, string> dic = kVEdms.ToDictionary(k => StringEnum.GetEnumValue <SysCategory>(k.Key), v => v.Value);
                return(dic);
            }
            else
            {
                var enumDic = StringEnum.GetDicFromEnumType(new SysCategory());
                return(enumDic.ToDictionary(k => (SysCategory)k.Value, v => v.Key));
            }
        }