public override void Load()
        {
            //try
            //{
            var respose = enumCodeService.GetEnumcodeList();

            if (respose.Data != null && respose.IsSuccess)
            {
                _cache.Clear();
                _cache = respose.Data.Where(en => en.EnumTypeID == ((int)EnumTypeEnum.DeviceClass).ToString()).ToList();
            }
            //}
            //catch(Exception ex)
            //{
            //    LogHelper.Error(string.Format("{0}:加载缓存失败!" + "\r\n" + ex.Message,CacheName));
            //}
        }
Beispiel #2
0
 public BasicResponse <List <EnumcodeInfo> > GetEnumcodeList(EnumcodeGetListRequest enumcoderequest)
 {
     return(_enumcodeService.GetEnumcodeList(enumcoderequest));
 }