static void CacheTask(int pid)
        {
            var orb = new UserBusinessLogic();

            using (SystemContextScope.CreateScope())
            {
                using (MySqlDataBaseScope.CreateScope(MySqlDataBase.DefaultDataBase))
                {
                    orb.SyncUser(orb._posAccess.First(pid));
                    RoleCache cache = new RoleCache();
                    cache.CachePageAuditUser();
                    cache.CacheTypeUser();
                }
            }
        }
Exemple #2
0
        /// <summary>
        /// 缓存
        /// </summary>
        public static void Cache()
        {
            var orb = new UserBusinessLogic();

            orb.DoCache();
        }