Ejemplo n.º 1
0
        public void AddSubContainer(ITalkContainer container)
        {
            if (!subContainers.Contains(container))
            {
                subContainers.Add(container);

                if (container.ParentContainer != null)
                {
                    if (!container.ParentContainer.Equals(this))
                    {
                        throw new InvalidOperationException("Different sub container already registered!");
                    }
                }
                else
                {
                    container.ParentContainer = this;
                }
            }
        }
Ejemplo n.º 2
0
 public InjectTargetAssemblyCondition(Assembly injectTargetAssembly, ITalkContainer targetContainer)
 {
     this.targetContainer      = targetContainer;
     this.injectTargetAssembly = injectTargetAssembly;
 }