protected virtual object ResolveInstance(object instance) { if (instance is IFactoryComponent) { IFactoryComponent componentFactory = (IFactoryComponent)instance; return(componentFactory.GetObject()); } return(instance); }
public void RemoveComponent(IFactoryComponent component) { components.Remove(component); }
public IFactoryComponent AddComponent(IFactoryComponent component) { components.Add(component); component.Parent = this; return(component); }