Exemplo n.º 1
0
        public CacheData(ConfigFilterChainManager configFilterChainManager, string name, string dataId, string group)
        {
            if (dataId == null || group == null)
            {
                throw new ArgumentNullException("dataId=" + dataId + ", group=" + group);
            }

            this.Name = name;
            this.ConfigFilterChainManager = configFilterChainManager;
            this.DataId         = dataId;
            this.Group          = group;
            this.Tenant         = TenantUtil.GetUserTenantForAcm();
            this.Listeners      = new List <ManagerListenerWrap>();
            this.IsInitializing = true;
            this.Content        = LoadCacheContentFromDiskLocal(name, dataId, group, Tenant);
            this.Md5            = GetMd5String(this.Content);
        }
 public CacheData GetCache(string dataId, string group)
 => GetCache(dataId, group, TenantUtil.GetUserTenantForAcm());