コード例 #1
0
        public MutableConfiguration CreateChild(string name, string value)
        {
            MutableConfiguration child = new MutableConfiguration(name, value);

            Children.Add(child);
            return(child);
        }
コード例 #2
0
        private void EnsureComponentConfiguration(IKernel kernel, ComponentModel model)
        {
            var configuration = kernel.ConfigurationStore.GetComponentConfiguration(model.Name);

            if (configuration == null)
            {
                configuration = new MutableConfiguration("component");
                kernel.ConfigurationStore.AddComponentConfiguration(model.Name, configuration);
            }
            if (model.Configuration == null)
            {
                model.Configuration = configuration;
            }
            return;
        }
コード例 #3
0
 public MutableConfiguration CreateChild(string name, string value)
 {
     MutableConfiguration child = new MutableConfiguration(name, value);
     Children.Add(child);
     return child;
 }
コード例 #4
0
ファイル: DefaultsDescriptor.cs プロジェクト: Jedzia/BackBock
 private void EnsureComponentConfiguration(IKernel kernel, ComponentModel model)
 {
     var configuration = kernel.ConfigurationStore.GetComponentConfiguration(model.Name);
     if (configuration == null)
     {
         configuration = new MutableConfiguration("component");
         kernel.ConfigurationStore.AddComponentConfiguration(model.Name, configuration);
     }
     if (model.Configuration == null)
     {
         model.Configuration = configuration;
     }
     return;
 }