aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
656 stars 86 forks source link

Add support for calculated configuration values #69

Closed maelgrove closed 2 years ago

maelgrove commented 6 years ago

Sometimes, configuration values need to be 'calculated' based on other configuration values, or be retrieved from the current environment, constants etc. The current implementation assumes that every configuration value comes from a dedicated, decoupled IConfigStore. A way to introduce this feature would be utilizing Castles CreateInterfaceProxyWithTarget method on the ProxyGenerator. The implementation would be sth. like this: