static ConfigurationSettings() { var adaptors = new List <IConfigurationAdaptor>(3); if (LoadConfigurationFromServer) { var config = new ServerConfigurationAdaptor(); config.Load(null); adaptors.Add(config); } if (AzureEnvironment.RoleIsAvailable) { adaptors.Add(new RoleEnvironmentAdaptor()); } Settings.Instance.Add(adaptors); }
public void Load() { var adaptor = new ServerConfigurationAdaptor(); adaptor.Load(new object()); }
public void LoadNull() { var adaptor = new ServerConfigurationAdaptor(); adaptor.Load(null); }