ServiceStack/ServiceStack — pull request #364 by gixug (2012-12-06 01:21:43+00:00)
Title: Extract common functionality into AppSettingsBase

I've pulled apart the AppSettings/ConfigUtils code into two parts. Before, the code that parsed the values (GetList, GetDictionary, Get) were inextricably linked to the ConfigurationManager class that reads out of App.config and Web.config. I wanted to implement an AzureAppSettings class that did the same thing, but used the RoleEnvironment class, so I extracted the bits that parsed values into a separate class and created a new ISettings interface that other implementations can derive from.

AppSettings works exactly as it did before, except for some extra error checking around parsing out values that provides some helpful error messages to the consumer instead of just throwing an OutOfRangeException.

Let me know if there's anything else that needs to change.