Clear/ Reset Resource Provider
How do you get access to the Resource Provider for the current context?
I have a web page that allows a client to edit their Globalization values which are stored in SQL.
However pages still utilize the ca开发者_运维百科ched values until the app domain is freed.
How can I force clear/reset the provider and or get access to it to clear its cache.
Thanks,
Andy
I know this is an old question but i ran into the same issue and couldnt find the answer. in the end i mage a call to getobject with a predefined key which would clear the cached resources for that category
object IResourceProvider.GetObject(string resourceKey, CultureInfo culture)
{
if (resourceKey == GlobalConstants.RefreshResourceCacheKey)
{
_resourceCache = new ListDictionary();
return null;
}
Maybe not the best solution but the only one i could find
精彩评论