示例#1
0
 private void RemoveItem(ConfiguredItem item)
 {
     ModuleList.Items.RemoveAt(ModuleList.Items.IndexOf(item));
 }
示例#2
0
 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);
 }