Using IMetadataInfo::GetModuleContextContainer to store configuration data
- Keep unique data only for the paths where configuration changes and not for all possible configuration paths.
- Detect configuration changes so that module always behave as per the latest configuration.
- Only delete the configuration data of paths which are affected by the change and not throw everything.
- Make sure this configuration store is accessed in thread safe manner.
// Always call this method to get configuration data
//
pModuleConfig = NULL;
//
)
BSTR bstrSectionName = NULL;
Kanwal