protected bool Plug( TContainer container, IComponent <TContainer> component) { if (component == null) { return(false); } lock (components) { if (components.Contains(component)) { return(false); } component.Bind(container); components.Add(component); return(true); } }