Esempio n. 1
0
        /// <summary>
        /// 移除缓存
        /// </summary>
        public override void RemoveCache()
        {
            Type[] types =
            {
                typeof(Merchant.BusinessLogic.RoleModuleManager),
                typeof(Merchant.BusinessLogic.RoleManager),
                typeof(Merchant.BusinessLogic.UserRoleManager),
                typeof(Merchant.BusinessLogic.UserManager)
            };
            IRoleManager    roleManager    = serviceProvider.GetRequiredService <IRoleManager>();
            IVersionManager versionManager = serviceProvider.GetRequiredService <IVersionManager>();

            Merchant.BusinessLogic.IMerchantManager merchantManager = serviceProvider.GetRequiredService <Merchant.BusinessLogic.IMerchantManager>();

            base.RemoveCache();
            roleManager.RemoveCache();
            versionManager.RemoveCache();
            merchantManager.RemoveAllCache(types);
        }