Better Implement your own Configuration Class. (Config App Block).
Like we normally do as:
class ConfigurationManager : Which reads the config values from one of
the config like just like the app.config and loads all data in the
Class ConfigManager into its properties.
This class can either load data from any xml/txt config file from any
path or registry or any location.
And we have more control and flexibility.
To implement dynamic runtime file changes, for filesystem based file,
implement filesystem watcher in this configmanager class, and have this
class a Load() function which fills up all the properties, and upon
detecting changes just call the Load()
---
hB
Matt Adamson - 02 May 2006 10:00 GMT
Thanks for this although I'm aware of a few alternative solutions I really
wanted to use the existing framework infrastructure for this.
The reason being is I want to avoid changing a lot of existing code just to
get our unit tests working well.
> Better Implement your own Configuration Class. (Config App Block).
> Like we normally do as:
[quoted text clipped - 13 lines]
> ---
> hB