/// <summary> /// We work with the cache on the server side of the DataPortal /// </summary> protected override void DataPortal_Execute() { // TODO: Add a way to control cache timeouts on a per object basis. Need some way to // categorize between resources that are expensive to keep in memory and resources that are // expensive to pull from the database. var key = "__ML_AssemblyTypeTextLocaleList_" + this.TenantId.ToString() + "_" + this.LocaleId.ToString() + "_" + this.TypeName + "__"; this.AssemblyTypeTextLocaleList = cache.GetOrAdd(key, () => AssemblyTypeTextLocaleList.GetAssemblyTypeTextLocaleList(this.TenantId, this.LocaleId, this.TypeName)); }
public AssemblyTypeTextLocaleList GetAssemblyTypeTextLocaleList(int tenantId, int localeId, string typeName) { return(AssemblyTypeTextLocaleList.GetCachedAssemblyTypeTextLocaleList(tenantId, localeId, typeName)); }