I get this exception when I try this :
return GlavCacheManagement.GetCache("cachekey",15, () => { var list= _repo.GetByLang(IsActiveOrAccepted.Active); return (currentLangId> 0 ? list.Where(x => x.LangId== currentLangId) : list).ToList(); });
My GlavCacheManagement class method
public static T GetCache<T>(string key, int h, Func<T> del) where T:class { if (FrSettings.Settings.IsGlavCacheActive) { return AppServices.Cache.Get<T>(key, DateTime.Now.AddMinutes(h),del); } return del.Invoke(); }
My delegate name is the problem here is the delegate info
FullName : Sport.DataAccess.Services.UserDestekHedefServices+<>c__DisplayClass9_0.<GetActiveHedefOfUser>b__0()
Name : <GetActiveHedefOfUser>b__0
Stacktrace: konum: System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)
I get this exception when I try this :
return GlavCacheManagement.GetCache("cachekey",15, () => { var list= _repo.GetByLang(IsActiveOrAccepted.Active); return (currentLangId> 0 ? list.Where(x => x.LangId== currentLangId) : list).ToList(); });My GlavCacheManagement class method
public static T GetCache<T>(string key, int h, Func<T> del) where T:class { if (FrSettings.Settings.IsGlavCacheActive) { return AppServices.Cache.Get<T>(key, DateTime.Now.AddMinutes(h),del); } return del.Invoke(); }My delegate name is the problem here is the delegate info
FullName :
Sport.DataAccess.Services.UserDestekHedefServices+<>c__DisplayClass9_0.<GetActiveHedefOfUser>b__0()Name :
<GetActiveHedefOfUser>b__0Stacktrace:
konum: System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)