private void RemoveItem(ConfiguredItem item) { ModuleList.Items.RemoveAt(ModuleList.Items.IndexOf(item)); }
private IComponentRegistration Register(Type implementationToRegister, string registrationName, Assembly module, ConfiguredItem item, Type type) { if (item.IsInstance()) { RemoveItem(item); } ModuleList.Items.Add(new ConfiguredItem { BaseType = implementationToRegister.FullName, ObjectInitializer = CreateObjectInitializer(registrationName, type, module) }); return(this); }