> Is it possible to create "Caches" on the fly with the mcab? I've > looked through the source and can't figure out how to do it, and > remain compatible with future releases. (ie make public some methods > and classes to allow dynamic creation ) .
This guy shows you how to do at least some of what you want: http://jelle.druyts.net/2006/03/28/EnterpriseLibraryCachingWithoutConfigurat ion.aspx His code creates an in-memory cache - no word on how easy or hard it would be to put a DB backend in there. Also, Tom Hollander from the P&P team has some info on how to use an external configuration source: http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx <quote> Enterprise Library for .NET Framework 2.0 uses an instance of a class implementing IConfigurationSource to retrieve configuration from the storage location. If you don't do anything special, you'll get a SystemConfigurationSource (this is what happened in the first example). However it's possible to configure your application to use a different configuration source. Enterprise Library ships with a couple of alternatives: the FileConfigurationSource is a core part of the library, and we also include a simple SqlConfigurationSource as an example of how to create your own. </quote> Hope this helps, Geoff =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com