jason-roberts / FeatureToggle

Simple, reliable feature toggles in .NET
http://dontcodetired.com/blog/?tag=/featuretoggle
Apache License 2.0
689 stars 111 forks source link

Fallback configured values for toggles #111

Closed jason-roberts closed 8 years ago

jason-roberts commented 8 years ago

For example look in DB for configured value, if toggle is not configured in db then use local (e.g. config file) value instead, if neither exist then error as usual. Implement as decorator??

If "primary" toggle lookup throws exception then will use fallback toggle, if fallback toggle errors then propagate exception to client.

Add event/callback/etc if primary fails to act as hook in point if client wants to perform an action such as logging?

jason-roberts commented 8 years ago

Potential to implement this via https://github.com/jason-roberts/FeatureToggle/issues/111 or derivative/decorator ??