public MutableConfiguration CreateChild(string name, string value) { MutableConfiguration child = new MutableConfiguration(name, value); Children.Add(child); return(child); }
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; }
public MutableConfiguration CreateChild(string name, string value) { MutableConfiguration child = new MutableConfiguration(name, value); Children.Add(child); return child; }