Tomorrow I’m heading for Tampa to speak at the Tampa Code Camp. Both Dennis Bottjer and Andrew Connell from JAXDUG plan to speak. I’m pretty excited about my session as well as attending as many of the sessions as I can.
The presentation is about a technique I came across (originally posted by Paul Haley on CodeProject.com). Paul’s article discussed a technique that dynamically loads configuration settings based on various environment configMap attributes. This approach uses a custom configuration section handler using the IConfigurationSectionHandler.
Paul mentions in his article how to extend his implementation to include other configMap nodes. Over the past year, John Arcidiacono and I have extended the handler to include several new configMap nodes. Matter of fact, the code has been refactered to include a Command Pattern, Encryption, support for the appSettings file attribute, improved error handling, an XSD, API documentation, unit tests and 3 or 4 new configMap nodes.
During the Code Camp session, I hope to demonstrate how the handler works as well as how it has been extended. I’m not completely finished with the newest version. Nevertheless, once I finished I plan to apply this technique to the Enterprise Library Configuration Block and .Net 2.0. I’d also like to post a follow up article on Code Project to Paul Haley’s original article and blog about some of the changes.