bungeemonkee / Configgy

A simple, powerful, extensible, testable .NET configuration library.
MIT License
41 stars 4 forks source link

Add an attribute to prevent certain values coming from certain sources #12

Closed bungeemonkee closed 8 years ago

bungeemonkee commented 8 years ago

Something like [PreventSource(typeof(CommandLineSource))] would be really useful for ensuring that key values only come from certain sources. The AggregateSource class would then need to enforce this. In this way we could prevent sensitive values such as connection strings from being overwritten on the command line.

bungeemonkee commented 8 years ago

Added in b3a1f439b49890aa0112392ae142362c98eb6370