Different Configuration Source For CSLA.NET

Different Configuration Source For CSLA.NET

Old forum URL: forums.lhotka.net/forums/t/5300.aspx


Yang posted on Tuesday, August 26, 2008

Has anyone implemented a different Configuration Source for CSLA? Currently it is hard coded to get the proxy from CslaDataPortalProxy in the appsettings of the app.config file. I need the flexibility to set the config source to be an external xml file or the parameters passed to the application. It is not that hard to do it but would like to know if somebody has already done it. It would be nice to have this baked in the framework where the default is to use the app.config settings.

RockfordLhotka replied on Wednesday, August 27, 2008

.NET already does this. CSLA uses the System.Configuration system in .NET, and they already allow you to reconfigure how System.Configuration gets the settings - including from other config files, or custom providers that you might create.

Copyright (c) Marimer LLC