I'm trying to pull out the 'expirationPollFrequencyInSeconds' from the CacheManagers section of my config file. It seems like it should be easy, but I'm having a very hard time with it. Can anyone please give me a good example?
Thank you but it looks like those links are talking about the cacheManager, which I would use to get information from the cache. I'm just trying to pull out a value from the config file.
I wish it was in the appSettings, since that would be easy. But it's in it's own section called cacheConfigurations. So I'm getting that section via the ConfigurationManager.GetSection method. But how to pull out the values after that is escaping me.
Code:
ConfigurationSection cacheConfigSec = System.Configuration.ConfigurationManager.GetSection("cachingConfiguration") as ConfigurationSection;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.