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);
        }
예제 #2
0
        public void Load()
        {
            var adaptor = new ServerConfigurationAdaptor();

            adaptor.Load(new object());
        }
예제 #3
0
        public void LoadNull()
        {
            var adaptor = new ServerConfigurationAdaptor();

            adaptor.Load(null);
        }