using System.Collections.Generic; using System.Web.Mvc; using Abp.Localization; using IwbZero; using IwbZero.Authorization.Base.Roles; using IwbZero.Authorization.Base.Users; namespace WeOnlineApp.Configuration { public class IwbCacheNames { public const string PlayReportInfoCache = "PlayReportInfoCache"; public const string PlayInfoCache = "PlayInfoCache"; public const string PlayRunningInfoCache = "PlayRunningInfoCache"; public const string CampInfoCache = "CampInfoCache"; public const string SceneInfoCache = "SceneInfoCache"; public const string PackageInfoCache = "PackageInfoCache"; public const string UserInfoCache = "UserInfoCache"; public const string FunctionCache = "FunctionCache"; public const string NavFunctionCache = "NavFunctionCache"; public static readonly List RefreshList = new List() { PlayReportInfoCache, PlayRunningInfoCache, PlayInfoCache, CampInfoCache, SceneInfoCache, PackageInfoCache, UserInfoCache, NavFunctionCache, FunctionCache, UserPermissionCacheItem.CacheStoreName, RolePermissionCacheItem.CacheStoreName, }; public static List GetCacheList() { var sList = new List { new SelectListItem() { Value = "", Text = L("CacheAll") } }; foreach (var l in RefreshList) { sList.Add(new SelectListItem() { Value = l, Text = L(l) }); } return sList; } private static string L(string name) { var str = LocalizationHelper.GetSource(IwbZeroConsts.LocalizationSourceName).GetString(name); return str; } //public static List Caches => new List() //{ // new CacheItem(FunctionCache), //}; } //public class CacheItem //{ // public CacheItem() // { // } // public CacheItem(string name, string displayName) // { // Name = name; // DisplayName = displayName; // } // public CacheItem(string name) // { // Name = name; // DisplayName = name; // } // public string Name { get; set; } // public string DisplayName { get; set; } //} }