Hi all again,
I'd like to use the EntLib 4.1 in my current project, specifically Unity 1.2 and the VAB. My application is an SaaS application, so as a result, I've made a decision to store tenant-specific configuration files in the database, to be loaded on tenant sign-in. These files include the VAB config and Unity config, as well as other tenant-specific settings.
My problem is that as much as I've searched through the documentation, I can't seem to find any practical way to simply use an XML string as my configuration info for the VAB. Am I missing something totally simple and obvious here?
I thought first that I'd have to create a custom implementation of IConfigurationSource, but then I realized that I would have to duplicate the parsing logic already present in the FileConfigurationSource class.
The next thought I had was that I could create a new class that derives from FileConfigurationSource, and just use the new class as a proxy to pass in the config info instead of a string with the file path, but I couldn't see how to override the place where the file is loaded.
I checked out the SqlConfigurationSource QuickStart sample, but that again is not really what I think I need.
Anyone out there have a similar requirement? How did you solve this problem?