예제 #1
0
        // private static System.Threading.Timer _timer;

        // private static readonly Thread JobThread = new Thread(new ThreadStart(CallthreadTask));



        static PLMSCacheSystemTest()
        {
            PLMSCacheSystemTest.StartBaseCache();


            SystemDefineEntityList = DictPdmEntityBlCache.Where(o => o.Value.EntityType.HasValue && o.Value.EntityType.Value == (int)EmEntityType.SystemDefineTable).Select(o => o.Value).ToList();
            UserDefineEntityList   = DictPdmEntityBlCache.Where(o => (o.Value.EntityType.HasValue) && o.Value.EntityType.Value == (int)EmEntityType.UserDefineTable).Select(o => o.Value).ToList();

            PdmCacheEntityLookupItem.SetupAllLookItemCache();

            SetupTimer();
        }
예제 #2
0
        static PdmCacheManager()
        {
            PdmCacheManager.StartBaseCache();



            SystemDefineEntityList = DictPdmEntityBlEntity.Where(o => o.Value.EntityType.HasValue && o.Value.EntityType.Value == (int)EmEntityType.SystemDefineTable).Select(o => o.Value).ToList();
            UserDefineEntityList   = DictPdmEntityBlEntity.Where(o => (o.Value.EntityType.HasValue) && o.Value.EntityType.Value == (int)EmEntityType.UserDefineTable).Select(o => o.Value).ToList();

            PdmCacheEntityLookupItem.SetupAllLookItemCache();

            SetupEntityScanTimer();
        }