Friday, 4 April 2014

AppFabric - List vigilant returned has objects with zero values

I am new to AppFabric and exploring it. we am means to put List in
appfabric and means to collect a list controlling Get method. However,
after retrieveing all a properties of a objects are set as null. Can
anybody assistance how can we solve this problem.Following is illustration
formula //Country vigilant Country country1 = new Country();country1.Name
="test";//Create listList countryList = new List
();countryList.Add(country1);//Add to
AppFabric_cache.Put("countryKey",countryList) //Retrieve from cacheList
countryList = (List )_cache.Get("countryKey");//check a
resultcountryList.Count advantage 1 that is expected.countryList[0].Name
advantage null;

No comments:

Post a Comment