Application and User configuration for a Composite Application

Feb 26, 2009 at 8:26 AM
Hi all,

I currently investigate how a global (meaning accessible from all modules) configuration can be used in Composite WPF. As far as I understand it, the default settings are linked to a project (module) and therefore not shared application wide. This should work for user settings and application settings.

Is there a neat way of doing this?

Feb 26, 2009 at 1:37 PM
I blog on the topic here (with link to source code for functional demo).  The functional demo actually uses an IServerConfiguration interface (not IConfigInfo as the blog indicates).

I've since upgraded the process to where it reads all of the AppSettings and ConnectionStrings from the Web.Config (as well as providing supplemental information from the ASP.NET default.aspx.cs file).   This effectively allows me to have a "single" configuration file for my Unit Test, ASP.NET, Silverlight and WCF Services (via Unity); I havn't updated the demo to support WCF services yet but will try to migrate the changes into the demo this weekend.